Changeset 32509 in osm for applications
- Timestamp:
- 2016-07-02T00:03:27+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/tagging-preset-tester
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tagging-preset-tester/build.xml
r32306 r32509 5 5 <property name="commit.message" value="[josm_tagging_preset_tester] #josm10288: fix NPE when starting without map"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value=" 8863"/>7 <property name="plugin.main.version" value="10279"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/tagging-preset-tester/src/org/openstreetmap/josm/plugins/taggingpresettester/TaggingPresetTester.java
r31615 r32509 23 23 import org.openstreetmap.josm.data.Preferences; 24 24 import org.openstreetmap.josm.data.coor.LatLon; 25 import org.openstreetmap.josm.data.osm.DataSet; 25 26 import org.openstreetmap.josm.data.osm.Node; 26 27 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 53 54 return; 54 55 Collection<OsmPrimitive> x; 55 if (Main.main!=null && Main.main.hasEditLayer()) { 56 x = Main.main.getCurrentDataSet().getSelected(); 56 DataSet ds = Main.getLayerManager().getEditDataSet(); 57 if (ds != null) { 58 x = ds.getSelected(); 57 59 } else { 58 60 x = makeFakeSuitablePrimitive(preset);
Note:
See TracChangeset
for help on using the changeset viewer.