Skip to content

Commit

Permalink
Check if GPS data is reasonable
Browse files Browse the repository at this point in the history
#406

Fix incorrect logic.
  • Loading branch information
Colin Clark committed Jun 20, 2016
1 parent 650aa8e commit ceadba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bar_gps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;

Expand Down

0 comments on commit ceadba5

Please sign in to comment.