Index: gpscorrelate/exif-gps.cpp
===================================================================
--- gpscorrelate.orig/exif-gps.cpp 2010-04-04 22:48:24.646160524 +0200
+++ gpscorrelate/exif-gps.cpp 2010-04-04 22:50:10.149478790 +0200
@@ -126,13 +126,11 @@
strcpy(Copy, Value.c_str());
// Check if we have GPS tags.
- Exiv2::Exifdatum& GPSData = ExifRead["Exif.GPSInfo.GPSVersionID"];
+ Exiv2::Exifdatum& GPSData = ExifRead["Exif.GPSInfo.GPSLatitude"];
- Value = GPSData.toString();
-
- if (Value.length() == 0)
+ if (GPSData.count() < 3)
{
- // No GPS data.
+ // No valid GPS data.
*IncludesGPS = 0;
} else {
// Seems to include GPS data...