Ignore:
Timestamp:
2016-01-29T19:53:36+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #11685 - parse subsecond exif information correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ExifReader.java

    r9648 r9672  
    77import java.util.Date;
    88
    9 import com.drew.metadata.exif.ExifDirectoryBase;
    109import org.openstreetmap.josm.Main;
    1110import org.openstreetmap.josm.data.coor.LatLon;
     
    1918import com.drew.metadata.MetadataException;
    2019import com.drew.metadata.Tag;
     20import com.drew.metadata.exif.ExifDirectoryBase;
    2121import com.drew.metadata.exif.ExifIFD0Directory;
    2222import com.drew.metadata.exif.ExifSubIFDDirectory;
     
    7070                if (subSeconds != null) {
    7171                    try {
    72                         date.setTime(date.getTime() + Integer.parseInt(subSeconds));
     72                        date.setTime(date.getTime() + (long) (1000L * Double.parseDouble("0." + subSeconds)));
    7373                    } catch (NumberFormatException e) {
    7474                        Main.warn("Failed parsing sub seconds from [{0}]", subSeconds);
Note: See TracChangeset for help on using the changeset viewer.