X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fsave%2FExifSaver.java;h=6533fcbed0e39f3043bde1bca12cf22c762374f2;hp=a5ae40295054d5eace532c3a542c53d99d510f07;hb=54b9d8bc8f0025ccf97a67d9dd217ef1f9cf082f;hpb=52bf9e8686c916be37a26a0b75340393d4478b05 diff --git a/tim/prune/save/ExifSaver.java b/tim/prune/save/ExifSaver.java index a5ae402..6533fcb 100644 --- a/tim/prune/save/ExifSaver.java +++ b/tim/prune/save/ExifSaver.java @@ -27,7 +27,6 @@ import tim.prune.data.Coordinate; import tim.prune.data.DataPoint; import tim.prune.data.Photo; import tim.prune.data.PhotoList; -import tim.prune.data.PhotoStatus; /** * Class to call Exiftool to save coordinate information in jpg files @@ -115,7 +114,7 @@ public class ExifSaver implements Runnable _dialog.pack(); // set progress bar and show dialog _progressBar.setVisible(false); - _dialog.show(); + _dialog.setVisible(true); return true; } @@ -291,7 +290,7 @@ public class ExifSaver implements Runnable } } String[] command = null; - if (inPhoto.getCurrentStatus() == PhotoStatus.NOT_CONNECTED) + if (inPhoto.getCurrentStatus() == Photo.Status.NOT_CONNECTED) { // Photo is no longer connected, so delete gps tags command = getDeleteGpsExifTagsCommand(inPhoto.getFile(), inOverwriteFlag); @@ -369,7 +368,7 @@ public class ExifSaver implements Runnable result[paramOffset + 3] = "-GPSLongitudeRef=" + inPoint.getLongitude().output(Coordinate.FORMAT_CARDINAL); // add altitude if it has it result[paramOffset + 4] = "-GPSAltitude=" - + (inPoint.hasAltitude()?inPoint.getAltitude().getValue(Altitude.FORMAT_METRES):0); + + (inPoint.hasAltitude()?inPoint.getAltitude().getValue(Altitude.Format.METRES):0); result[paramOffset + 5] = "-GPSAltitudeRef='Above Sea Level'"; // add the filename to modify result[paramOffset + 6] = inFile.getAbsolutePath();