Changeset 32466 in osm for applications/editors/josm/plugins/alignways/src/com
- Timestamp:
- 2016-06-30T20:01:49+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/alignways/src/com/tilusnet/josm/plugins/alignways
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.