Changeset 455 in josm for trunk/src


Ignore:
Timestamp:
2007-11-04T22:41:35+01:00 (17 years ago)
Author:
gebner
Message:

SelectAction: Replace the selection when dragging a previously unselected
object.

File:
1 edited

Legend:

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

    r454 r455  
    207207                        setCursor(ImageProvider.getCursor("rotate", null));
    208208                } else if (!osmColl.isEmpty()) {
    209                         // Only add to selection for now, we only do replace and remove in
    210                         // mouseReleased if the user didn't try to move.
    211                         selectPrims(osmColl, true, ctrl);
     209                        // Don't replace the selection now if the user clicked on a
     210                        // selected object (this would break moving of selected groups).
     211                        // We'll do that later in mouseReleased if the user didn't try to
     212                        // move.
     213                        selectPrims(osmColl,
     214                                shift || Main.ds.getSelected().containsAll(osmColl),
     215                                ctrl);
    212216                        mode = Mode.move;
    213217                } else {
Note: See TracChangeset for help on using the changeset viewer.