From 650aa8ea3a5e0bfafc70d60dce16267969d37b36 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Mon, 20 Jun 2016 12:25:27 +0100 Subject: [PATCH] Check if GPS data is reasonable https://github.com/BestImageViewer/geeqie/issues/406 Change lat/long fallback values to 0 rather than 1000 --- src/bar_gps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bar_gps.c b/src/bar_gps.c index a33330b4..77da182b 100644 --- a/src/bar_gps.c +++ b/src/bar_gps.c @@ -237,10 +237,10 @@ static gboolean bar_pane_gps_create_markers_cb(gpointer data) fd = pgd->not_added->data; pgd->not_added = pgd->not_added->next; - latitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLatitude", 1000); - longitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLongitude", 1000); + latitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLatitude", 0); + longitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLongitude", 0); - if ((latitude != 1000) && (longitude != 1000)) + if ((latitude != 0) && (longitude != 0)) { pgd->num_added++; -- 2.20.1