Changeset 34093 in osm for applications
- Timestamp:
- 2018-03-21T01:49:16+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/src/org/wikipedia/gui/WikipediaToggleDialog.java
r34079 r34093 27 27 import org.openstreetmap.josm.command.ChangePropertyCommand; 28 28 import org.openstreetmap.josm.data.coor.LatLon; 29 import org.openstreetmap.josm.data.osm.DataSet; 29 30 import org.openstreetmap.josm.data.osm.OsmPrimitive; 30 31 import org.openstreetmap.josm.data.osm.Tag; … … 316 317 317 318 static void addTag(Tag tag) { 318 if (tag == null) { 319 return; 320 } 321 final Collection<OsmPrimitive> selected = MainApplication.getLayerManager().getEditDataSet().getSelected(); 319 final DataSet editDataSet = MainApplication.getLayerManager().getEditDataSet(); 320 if (tag == null || editDataSet == null) { 321 return; 322 } 323 final Collection<OsmPrimitive> selected = editDataSet.getSelected(); 322 324 if (selected.isEmpty() || !GuiUtils.confirmOverwrite(tag.getKey(), tag.getValue(), selected)) { 323 325 return;
Note:
See TracChangeset
for help on using the changeset viewer.