- Timestamp:
- 2016-01-29T19:53:36+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ExifReader.java
r9648 r9672 7 7 import java.util.Date; 8 8 9 import com.drew.metadata.exif.ExifDirectoryBase;10 9 import org.openstreetmap.josm.Main; 11 10 import org.openstreetmap.josm.data.coor.LatLon; … … 19 18 import com.drew.metadata.MetadataException; 20 19 import com.drew.metadata.Tag; 20 import com.drew.metadata.exif.ExifDirectoryBase; 21 21 import com.drew.metadata.exif.ExifIFD0Directory; 22 22 import com.drew.metadata.exif.ExifSubIFDDirectory; … … 70 70 if (subSeconds != null) { 71 71 try { 72 date.setTime(date.getTime() + Integer.parseInt(subSeconds));72 date.setTime(date.getTime() + (long) (1000L * Double.parseDouble("0." + subSeconds))); 73 73 } catch (NumberFormatException e) { 74 74 Main.warn("Failed parsing sub seconds from [{0}]", subSeconds);
Note:
See TracChangeset
for help on using the changeset viewer.