Ticket #11059: photo_geotagging_unflagNewGpsData.patch
| File photo_geotagging_unflagNewGpsData.patch, 1.9 KB (added by , 11 years ago) |
|---|
-
build.xml
4 4 <!-- enter the SVN commit message --> 5 5 <property name="commit.message" value="write elevation to EXIF (see josm #7710)"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value=" 7001"/>7 <property name="plugin.main.version" value="9999"/> 8 8 9 9 <property name="plugin.author" value="Paul Hartmann"/> 10 10 <property name="plugin.class" value="org.openstreetmap.josm.plugins.photo_geotagging.GeotaggingPlugin"/> -
src/org/openstreetmap/josm/plugins/photo_geotagging/GeotaggingAction.java
67 67 for (ImageEntry e : layer.getImages()) { 68 68 /* Only write lat/lon to the file, if the position is known and 69 69 the GPS data changed. */ 70 if (e.getPos() != null && (e.hasNewGpsData() || e.hasGpsTime())) {70 if (e.getPos() != null && e.hasNewGpsData()) { 71 71 images.add(e); 72 72 } 73 73 } … … 237 237 } 238 238 239 239 cleanupFiles(); 240 e.unflagNewGpsData(); 240 241 241 242 } catch (final IOException ioe) { 242 243 ioe.printStackTrace(); … … 390 391 */ 391 392 private boolean enabled(GeoImageLayer layer) { 392 393 for (ImageEntry e : layer.getImages()) { 393 if (e.getPos() != null && (e.hasNewGpsData() || e.hasGpsTime()))394 if (e.getPos() != null && e.hasNewGpsData()) 394 395 return true; 395 396 } 396 397 return false;
