Changeset 140 in josm


Ignore:
Timestamp:
2006-09-09T00:28:25+02:00 (15 years ago)
Author:
imi
Message:
  • when creating a segment, add to selection instead of replace
File:
1 edited

Legend:

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

    r138 r140  
    1010import java.awt.event.MouseEvent;
    1111import java.awt.event.MouseListener;
     12import java.util.Collection;
    1213
    1314import org.openstreetmap.josm.Main;
     
    145146                        Segment ls = new Segment(start, end);
    146147                        Main.main.editLayer().add(new AddCommand(ls));
    147                         Main.ds.setSelected(ls);
     148                        Collection<OsmPrimitive> sel = Main.ds.getSelected();
     149                        sel.add(ls);
     150                        Main.ds.setSelected(sel);
    148151                }
    149152
Note: See TracChangeset for help on using the changeset viewer.