Changeset 33555 in osm for applications


Ignore:
Timestamp:
2017-08-27T16:42:06+02:00 (7 years ago)
Author:
donvip
Message:

avoid unneeded call to Command.getLayer()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/splinex/src/org/openstreetmap/josm/plugins/Splinex/Spline.java

    r33534 r33555  
    314314            nodes.add(idx, sn);
    315315            if (!existing) {
    316                 getLayer().data.addPrimitive(sn.node);
     316                getAffectedDataSet().addPrimitive(sn.node);
    317317                sn.node.setModified(true);
    318318                affected = true;
     
    324324        public void undoCommand() {
    325325            if (!existing)
    326                 getLayer().data.removePrimitive(sn.node);
     326                getAffectedDataSet().removePrimitive(sn.node);
    327327            nodes.remove(idx);
    328328            affected = false;
Note: See TracChangeset for help on using the changeset viewer.