Ignore:
Timestamp:
2018-03-26T21:06:01+02:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 13558

Location:
applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/TurnRestrictionEditor.java

    r33780 r34128  
    546546            }
    547547
    548             MainApplication.undoRedo.add(new AddCommand(getLayer().data, newTurnRestriction));
     548            MainApplication.undoRedo.add(new AddCommand(getLayer().getDataSet(), newTurnRestriction));
    549549
    550550            // make sure everybody is notified about the changes
     
    568568            editorModel.apply(toUpdate);
    569569            Conflict<Relation> conflict = new Conflict<>(getTurnRestriction(), toUpdate);
    570             MainApplication.undoRedo.add(new ConflictAddCommand(getLayer().data, conflict));
     570            MainApplication.undoRedo.add(new ConflictAddCommand(getLayer().getDataSet(), conflict));
    571571        }
    572572
     
    578578            if (getTurnRestriction().getDataSet() == null) {
    579579                editorModel.apply(getTurnRestriction());
    580                 MainApplication.undoRedo.add(new AddCommand(getLayer().data, getTurnRestriction()));
     580                MainApplication.undoRedo.add(new AddCommand(getLayer().getDataSet(), getTurnRestriction()));
    581581            } else {
    582582                Relation toUpdate = new Relation(getTurnRestriction());
  • applications/editors/josm/plugins/turnrestrictions/src/org/openstreetmap/josm/plugins/turnrestrictions/editor/ViaListModel.java

    r32519 r34128  
    171171        if (idsToInsert == null) return;
    172172        List<OsmPrimitive> primitives = new ArrayList<>(idsToInsert.size());
    173         DataSet ds = model.getLayer().data;
     173        DataSet ds = model.getLayer().getDataSet();
    174174        for (PrimitiveId id: idsToInsert) {
    175175            OsmPrimitive p = ds.getPrimitiveById(id);
Note: See TracChangeset for help on using the changeset viewer.