Changeset 32466 in osm for applications/editors/josm/plugins/alignways
- Timestamp:
- 2016-06-30T20:01:49+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/alignways
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/alignways/build.xml
r31926 r32466 4 4 <property name="commit.message" value="AlignWays: moved to Shift-Spacebar due to shortcut confilcts with core. A is too overloaded"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value=" 7001"/>6 <property name="plugin.main.version" value="10353"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysAction.java
r30345 r32466 42 42 if (!isEnabled()) 43 43 return; 44 if (get CurrentDataSet() == null)44 if (getLayerManager().getEditDataSet() == null) 45 45 return; 46 46 -
applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways/AlignWaysMode.java
r30345 r32466 20 20 import org.openstreetmap.josm.Main; 21 21 import org.openstreetmap.josm.actions.mapmode.MapMode; 22 import org.openstreetmap.josm.data.osm.DataSet; 22 23 import org.openstreetmap.josm.gui.IconToggleButton; 23 24 import org.openstreetmap.josm.gui.MapFrame; … … 149 150 // already been removed by JOSM. This happens e.g. when the user closes 150 151 // JOSM while AlignWays mode is still active. 151 if (getCurrentDataSet() != null) { 152 getCurrentDataSet().clearSelection(); 152 DataSet ds = getLayerManager().getEditDataSet(); 153 if (ds != null) { 154 ds.clearSelection(); 153 155 } 154 156 }
Note:
See TracChangeset
for help on using the changeset viewer.