Ignore:
Timestamp:
2009-11-07T20:28:14+01:00 (15 years ago)
Author:
jttt
Message:

Save reference to dataset in OsmPrimitive

Location:
trunk/src/org/openstreetmap/josm/command
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/AddPrimitivesCommand.java

    r2399 r2405  
    3232
    3333        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));
    3535        }
    3636        getLayer().data.setSelected(createdPrimitives);
  • trunk/src/org/openstreetmap/josm/command/Command.java

    r2308 r2405  
    22package org.openstreetmap.josm.command;
    33
     4import static org.openstreetmap.josm.tools.I18n.tr;
     5
    46import java.util.Collection;
    5 import static org.openstreetmap.josm.tools.I18n.tr;
    67import java.util.HashMap;
    78import java.util.HashSet;
     
    9293    public void undoCommand() {
    9394        for (Entry<OsmPrimitive, PrimitiveData> e : cloneMap.entrySet()) {
    94             e.getKey().load(e.getValue(), layer.data);
     95            e.getKey().load(e.getValue());
    9596        }
    9697    }
Note: See TracChangeset for help on using the changeset viewer.