Check if GPS data is reasonable
authorColin Clark <cclark@mcb.net>
Mon, 20 Jun 2016 13:31:32 +0000 (14:31 +0100)
committerColin Clark <cclark@mcb.net>
Mon, 20 Jun 2016 13:31:32 +0000 (14:31 +0100)
https://github.com/BestImageViewer/geeqie/issues/406

Fix incorrect logic.

src/bar_gps.c

index 77da182..31e51f8 100644 (file)
@@ -240,7 +240,7 @@ static gboolean bar_pane_gps_create_markers_cb(gpointer data)
                latitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLatitude", 0);
                longitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLongitude", 0);
 
-               if ((latitude != 0) && (longitude != 0))
+               if (!(latitude == 0 && longitude == 0))
                        {
                        pgd->num_added++;