changeset 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 a15dc91173b4
children 54280e8b8309
files src/bar_gps.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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);