Changeset 2405 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2009-11-07T20:28:14+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java
r2399 r2405 32 32 33 33 for (int i=0; i<createdPrimitives.size(); i++) { 34 createdPrimitives.get(i).load(data.get(i) , getLayer().data);34 createdPrimitives.get(i).load(data.get(i)); 35 35 } 36 36 getLayer().data.setSelected(createdPrimitives); -
trunk/src/org/openstreetmap/josm/command/Command.java
r2308 r2405 2 2 package org.openstreetmap.josm.command; 3 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 4 6 import java.util.Collection; 5 import static org.openstreetmap.josm.tools.I18n.tr;6 7 import java.util.HashMap; 7 8 import java.util.HashSet; … … 92 93 public void undoCommand() { 93 94 for (Entry<OsmPrimitive, PrimitiveData> e : cloneMap.entrySet()) { 94 e.getKey().load(e.getValue() , layer.data);95 e.getKey().load(e.getValue()); 95 96 } 96 97 }
Note: See TracChangeset
for help on using the changeset viewer.