Changeset 140 in josm
- Timestamp:
- 2006-09-09T00:28:25+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/mapmode/AddSegmentAction.java
r138 r140 10 10 import java.awt.event.MouseEvent; 11 11 import java.awt.event.MouseListener; 12 import java.util.Collection; 12 13 13 14 import org.openstreetmap.josm.Main; … … 145 146 Segment ls = new Segment(start, end); 146 147 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); 148 151 } 149 152
Note:
See TracChangeset
for help on using the changeset viewer.