diff src/bar_gps.c @ 1708:fc147a2d8aaf

do not process sidecar files in bar_gps patch by Colin Clark
author nadvornik
date Tue, 28 Jul 2009 22:14:26 +0000
parents 1867687f2fcb
children b52deba688e9
line wrap: on
line diff
--- a/src/bar_gps.c	Tue Jul 28 22:03:54 2009 +0000
+++ b/src/bar_gps.c	Tue Jul 28 22:14:26 2009 +0000
@@ -227,7 +227,9 @@
 		{
 		fd = work->data;
 		pgd->selection_list = g_list_remove(pgd->selection_list, work->data);
-		if (fd != NULL)
+		/* If the file has a parent, it must be a sidecar file. Do not process sidecar files
+		*/
+		if (fd != NULL && fd->parent == NULL)
 			{
 			latitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLatitude", 1000);
 			longitude = metadata_read_GPS_coord(fd, "Xmp.exif.GPSLongitude", 1000);