Changeset 36103 in osm for applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/AssociatedStreetFixer.java
- Timestamp:
- 2023-07-24T17:55:34+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reltoolbox/src/relcontext/relationfix/AssociatedStreetFixer.java
r36102 r36103 12 12 import org.openstreetmap.josm.command.Command; 13 13 import org.openstreetmap.josm.command.SequenceCommand; 14 import org.openstreetmap.josm.data.osm.DataSet; 14 15 import org.openstreetmap.josm.data.osm.Node; 15 16 import org.openstreetmap.josm.data.osm.OsmPrimitiveType; … … 18 19 import org.openstreetmap.josm.data.osm.Way; 19 20 import org.openstreetmap.josm.gui.MainApplication; 21 import org.openstreetmap.josm.tools.Utils; 20 22 21 23 public class AssociatedStreetFixer extends RelationFixer { … … 135 137 List<Command> commandList = new ArrayList<>(); 136 138 if (fixed) { 137 commandList.add(new ChangeCommand(MainApplication.getLayerManager().getEditDataSet(), source, rel)); 139 final DataSet ds = Utils.firstNonNull(source.getDataSet(), MainApplication.getLayerManager().getEditDataSet()); 140 commandList.add(new ChangeCommand(ds, source, rel)); 138 141 } 139 142
Note:
See TracChangeset
for help on using the changeset viewer.
