Changeset 18315 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2021-11-07T15:01:40+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java
r18252 r18315 732 732 733 733 try { 734 if (dirExif != null ) {734 if (dirExif != null && dirExif.containsTag(ExifIFD0Directory.TAG_ORIENTATION)) { 735 735 setExifOrientation(dirExif.getInt(ExifIFD0Directory.TAG_ORIENTATION)); 736 736 } … … 740 740 741 741 try { 742 if (dir != null ) {742 if (dir != null && dir.containsTag(JpegDirectory.TAG_IMAGE_WIDTH) && dir.containsTag(JpegDirectory.TAG_IMAGE_HEIGHT)) { 743 743 // there are cases where these do not match width and height stored in dirExif 744 744 setWidth(dir.getInt(JpegDirectory.TAG_IMAGE_WIDTH));
Note:
See TracChangeset
for help on using the changeset viewer.