Ignore:
Timestamp:
2009-10-10T14:14:28+02:00 (15 years ago)
Author:
stoecker
Message:

applied #3676 - patch by Dave Hansen - cleanup selection handling interface

File:
1 edited

Legend:

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

    r2120 r2264  
    325325        mousePos = e.getPoint();
    326326
    327         Collection<OsmPrimitive> selection = getCurrentDataSet().getSelected();
     327        DataSet ds = getCurrentDataSet();
     328        Collection<OsmPrimitive> selection = ds.getSelected();
    328329        Collection<Command> cmds = new LinkedList<Command>();
    329330
     
    405406                    // here so /only/ the new way will be selected after this method finishes.
    406407                    if(alt) {
    407                         wnew.setSelected(false);
     408                        ds.addSelected(wnew);
    408409                    }
    409410
     
    519520                extendedWay = true;
    520521                getCurrentDataSet().setSelected(way);
    521                 DataSet.fireSelectionChanged(getCurrentDataSet().getSelected());
     522                DataSet.fireSelectionChanged(ds.getSelected());
    522523            }
    523524        }
     
    532533                title = tr("Add node into way");
    533534                for (Way w : reuseWays) {
    534                     w.setSelected(false);
     535                    ds.clearSelection(w);
    535536                }
    536537            }
Note: See TracChangeset for help on using the changeset viewer.