Changeset 9648 in josm


Ignore:
Timestamp:
2016-01-27T12:53:42+01:00 (9 years ago)
Author:
simon04
Message:

fix #11685 - Obtain EXIF fields only from EXIF directories

Fixes unit test ExifReaderTest.testReadTime

File:
1 edited

Legend:

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

    r9499 r9648  
    77import java.util.Date;
    88
     9import com.drew.metadata.exif.ExifDirectoryBase;
    910import org.openstreetmap.josm.Main;
    1011import org.openstreetmap.josm.data.coor.LatLon;
     
    4445            String subSeconds = null;
    4546            for (Directory dirIt : metadata.getDirectories()) {
     47                if (!(dirIt instanceof ExifDirectoryBase)) {
     48                    continue;
     49                }
    4650                for (Tag tag : dirIt.getTags()) {
    4751                    if (tag.getTagType() == ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL /* 0x9003 */ &&
Note: See TracChangeset for help on using the changeset viewer.