Changes in src/org/openstreetmap/josm/actions/mapmode/SelectionAction.java [17:23] in josm
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/mapmode/SelectionAction.java
r17 r23 5 5 import java.util.Collection; 6 6 7 import org.openstreetmap.josm. data.osm.DataSet;7 import org.openstreetmap.josm.Main; 8 8 import org.openstreetmap.josm.data.osm.OsmPrimitive; 9 9 import org.openstreetmap.josm.gui.MapFrame; … … 87 87 return; // not allowed together 88 88 89 DataSet ds = mv.getActiveDataSet();90 91 89 if (!ctrl && !shift) 92 ds.clearSelection(); // new selection will replace the old.90 Main.main.ds.clearSelection(); // new selection will replace the old. 93 91 94 92 Collection<OsmPrimitive> selectionList = selectionManager.getObjectsInRectangle(r,alt); 95 93 for (OsmPrimitive osm : selectionList) 96 osm.setSelected(!ctrl , ds);94 osm.setSelected(!ctrl); 97 95 mv.repaint(); 98 96 } 99 100 @Override101 protected boolean isEditMode() {102 return false;103 }104 97 }
Note:
See TracChangeset
for help on using the changeset viewer.