Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageEntry.java
r11746 r12620 8 8 import java.util.Date; 9 9 10 import org.openstreetmap.josm.Main;11 10 import org.openstreetmap.josm.data.coor.CachedLatLon; 12 11 import org.openstreetmap.josm.data.coor.LatLon; 13 12 import org.openstreetmap.josm.tools.ExifReader; 14 13 import org.openstreetmap.josm.tools.JosmRuntimeException; 14 import org.openstreetmap.josm.tools.Logging; 15 15 16 16 import com.drew.imaging.jpeg.JpegMetadataReader; … … 440 440 metadata = JpegMetadataReader.readMetadata(file); 441 441 } catch (CompoundException | IOException ex) { 442 Main.error(ex);442 Logging.error(ex); 443 443 setExifTime(null); 444 444 setExifCoor(null); … … 452 452 setExifTime(ExifReader.readTime(metadata)); 453 453 } catch (JosmRuntimeException | IllegalArgumentException | IllegalStateException ex) { 454 Main.warn(ex);454 Logging.warn(ex); 455 455 setExifTime(null); 456 456 } … … 465 465 } 466 466 } catch (MetadataException ex) { 467 Main.debug(ex);467 Logging.debug(ex); 468 468 } 469 469 … … 489 489 setPos(getExifCoor()); 490 490 } catch (MetadataException | IndexOutOfBoundsException ex) { // (other exceptions, e.g. #5271) 491 Main.error("Error reading EXIF from file: " + ex);491 Logging.error("Error reading EXIF from file: " + ex); 492 492 setExifCoor(null); 493 493 setPos(null); … … 500 500 } 501 501 } catch (IndexOutOfBoundsException ex) { // (other exceptions, e.g. #5271) 502 Main.debug(ex);502 Logging.debug(ex); 503 503 } 504 504
Note:
See TracChangeset
for help on using the changeset viewer.