Changeset 35236 in osm
- Timestamp:
- 2019-11-25T20:33:01+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photoadjust/src/org/openstreetmap/josm/plugins/photoadjust/UntaggedGeoImageLayerAction.java
r34786 r35236 65 65 66 66 /** 67 * Check if there is any image without coordinates. 67 * Determine if the action should be enabled. That is the case if there is 68 * any image without coordinates and any image with coordinates. 68 69 * @param layer geo image layer 69 70 * @return {@code true} if there is any image without coordinates … … 71 72 private static boolean enabled(GeoImageLayer layer) { 72 73 if (layer != null) { 74 boolean hasNoPos = false; 75 boolean hasPos = false; 73 76 for (ImageEntry img: layer.getImages()) { 74 77 if (img.getPos() == null) { 78 hasNoPos = true; 79 } else { 80 hasPos = true; 81 } 82 if (hasNoPos && hasPos) { 75 83 return true; 76 84 }
Note:
See TracChangeset
for help on using the changeset viewer.