Changeset 32712 in osm for applications
- Timestamp:
- 2016-07-26T00:18:38+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoAdjustMapMode.java
r32451 r32712 55 55 initAdapters(); 56 56 this.worker = worker; 57 Main.getLayerManager().addLayerChangeListener(this);58 Main.getLayerManager().addActiveLayerChangeListener(this);59 57 } 60 58 … … 135 133 super.enterMode(); 136 134 modeSelected = true; 137 // Activate the mode only if the current layer is not a 138 // GeoImageLayer. GeoImageLayer's are handled by the plug-in directly. 139 if (! (Main.getLayerManager().getActiveLayer() instanceof GeoImageLayer)) { 135 Main.getLayerManager().addLayerChangeListener(this); 136 Main.getLayerManager().addActiveLayerChangeListener(this); 137 // Activate the mode only if the current layer is not a GeoImageLayer. 138 // GeoImageLayer's are handled by the plug-in directly. 139 if (!(Main.getLayerManager().getActiveLayer() instanceof GeoImageLayer)) { 140 140 activateMode(); 141 141 }
Note:
See TracChangeset
for help on using the changeset viewer.