Changeset 2264 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode
- Timestamp:
- 2009-10-10T14:14:28+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r2120 r2264 325 325 mousePos = e.getPoint(); 326 326 327 Collection<OsmPrimitive> selection = getCurrentDataSet().getSelected(); 327 DataSet ds = getCurrentDataSet(); 328 Collection<OsmPrimitive> selection = ds.getSelected(); 328 329 Collection<Command> cmds = new LinkedList<Command>(); 329 330 … … 405 406 // here so /only/ the new way will be selected after this method finishes. 406 407 if(alt) { 407 wnew.setSelected(false);408 ds.addSelected(wnew); 408 409 } 409 410 … … 519 520 extendedWay = true; 520 521 getCurrentDataSet().setSelected(way); 521 DataSet.fireSelectionChanged( getCurrentDataSet().getSelected());522 DataSet.fireSelectionChanged(ds.getSelected()); 522 523 } 523 524 } … … 532 533 title = tr("Add node into way"); 533 534 for (Way w : reuseWays) { 534 w.setSelected(false);535 ds.clearSelection(w); 535 536 } 536 537 }
Note:
See TracChangeset
for help on using the changeset viewer.