Ignore:
Timestamp:
2007-12-17T18:49:58+01:00 (17 years ago)
Author:
gebner
Message:

When deleting a way, delete untagged and unused nodes reference by it too, by
default. Reported by Lauri Hahne <lauri.hahne@…>

File:
1 edited

Legend:

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

    r484 r495  
    7979                super.actionPerformed(e);
    8080                boolean ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0;
     81                boolean alt = (e.getModifiers() & ActionEvent.ALT_MASK) != 0;
    8182
    8283                Command c;
     
    8485                        c = deleteWithReferences(Main.ds.getSelected());
    8586                } else {
    86                         c = delete(Main.ds.getSelected(), false);
     87                        c = delete(Main.ds.getSelected(), !alt);
    8788                }
    8889                if (c != null) {
     
    114115                                        c = deleteWithReferences(Collections.singleton((OsmPrimitive)ws.way));
    115116                                } else {
    116                                         c = delete(Collections.singleton((OsmPrimitive)ws.way), alt);
     117                                        c = delete(Collections.singleton((OsmPrimitive)ws.way), !alt);
    117118                                }
    118119                        }
     
    120121                        c = deleteWithReferences(Collections.singleton(sel));
    121122                } else {
    122                         c = delete(Collections.singleton(sel), alt);
     123                        c = delete(Collections.singleton(sel), !alt);
    123124                }
    124125                if (c != null) {
     
    281282       
    282283        @Override public String getModeHelpText() {
    283                 return tr("Click to delete. Shift: delete way segment. Alt: delete way+nodes. Ctrl: delete referring objects.");
     284                return tr("Click to delete. Shift: delete way segment. Alt: don't delete unused nodes when deleting a way. Ctrl: delete referring objects.");
    284285        }
    285286}
Note: See TracChangeset for help on using the changeset viewer.