Ignore:
Timestamp:
2010-11-19T18:13:39+01:00 (9 years ago)
Author:
bastiK
Message:

applied patch by rbyshko - additional constructor for AddPrimitivesCommand

File:
1 edited

Legend:

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

    r3440 r3660  
    1515import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1616import org.openstreetmap.josm.data.osm.PrimitiveData;
     17import org.openstreetmap.josm.gui.layer.OsmDataLayer;
    1718
    1819public class AddPrimitivesCommand extends Command {
     
    2122
    2223    public AddPrimitivesCommand(List<PrimitiveData> data) {
     24        this.data.addAll(data);
     25    }
     26   
     27    public AddPrimitivesCommand(List<PrimitiveData> data, OsmDataLayer layer) {
     28        super(layer);
    2329        this.data.addAll(data);
    2430    }
Note: See TracChangeset for help on using the changeset viewer.