Changeset 35770 in osm for applications/editors/josm/plugins/photoadjust
- Timestamp:
- 2021-05-25T15:47:55+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/PhotoPropertyEditor.java
r35767 r35770 42 42 import org.openstreetmap.josm.tools.GBC; 43 43 import org.openstreetmap.josm.tools.ImageProvider; 44 import org.openstreetmap.josm.tools.Logging; 44 45 45 46 /** … … 67 68 */ 68 69 private static class PropertyEditorAction extends JosmAction implements LayerChangeListener, ImageDataUpdateListener { 69 boolean imgDataUpdLstReg = false;70 70 71 71 public PropertyEditorAction() { … … 137 137 if (layer instanceof GeoImageLayer) { 138 138 ((GeoImageLayer) layer).getImageData().addImageDataUpdateListener(this); 139 imgDataUpdLstReg = true;140 139 } 141 140 } … … 149 148 // e.g. if the plugin was added while the geo image layer 150 149 // existed and then the layer is removed. 151 if (imgDataUpdLstReg){150 try { 152 151 ((GeoImageLayer) layer).getImageData().removeImageDataUpdateListener(this); 153 imgDataUpdLstReg = false; 152 } catch (IllegalArgumentException ignore) { 153 Logging.trace(ignore); 154 154 } 155 155 }
Note:
See TracChangeset
for help on using the changeset viewer.