Changeset 5076 in josm for trunk/src


Ignore:
Timestamp:
2012-03-13T19:23:42+01:00 (13 years ago)
Author:
xeen
Message:

fix #6780. Please report if this caused any repaint problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DeleteAction.java

    r4982 r5076  
    147147            c = DeleteCommand.delete(getEditLayer(),getCurrentDataSet().getSelected(), !alt /* also delete nodes in way */);
    148148        }
     149        // if c is null, an error occurred or the user aborted. Don't do anything in that case.
    149150        if (c != null) {
    150151            Main.main.undoRedo.add(c);
    151         }
    152 
    153         getCurrentDataSet().setSelected();
    154         Main.map.repaint();
     152            getCurrentDataSet().setSelected();
     153            Main.map.repaint();
     154        }
    155155    }
    156156
Note: See TracChangeset for help on using the changeset viewer.