Changeset 8244 in josm


Ignore:
Timestamp:
2015-04-21T09:44:58+02:00 (10 years ago)
Author:
Don-vip
Message:

see #11359 - ignore unsupported date/time exif tags

File:
1 edited

Legend:

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

    r8243 r8244  
    4747            for (Directory dirIt : metadata.getDirectories()) {
    4848                for (Tag tag : dirIt.getTags()) {
    49                     if (tag.getTagType() == ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL /* 0x9003 */) {
     49                    if (tag.getTagType() == ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL /* 0x9003 */ &&
     50                            !tag.getDescription().matches("\\[[0-9]+ .+\\]")) {
    5051                        dateStr = tag.getDescription();
    51                         break OUTER; // prefer this tag
     52                        break OUTER; // prefer this tag if known
    5253                    }
    5354                    if (tag.getTagType() == ExifIFD0Directory.TAG_DATETIME /* 0x0132 */ ||
Note: See TracChangeset for help on using the changeset viewer.