# HG changeset patch # User nadvornik # Date 1248819266 0 # Node ID fc147a2d8aaf0a1fc9012b227bff8b78375227e3 # Parent a15dc91173b4470cc4088af43f2b2abfd7dcf48c do not process sidecar files in bar_gps patch by Colin Clark diff -r a15dc91173b4 -r fc147a2d8aaf src/bar_gps.c --- 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);