# HG changeset patch # User nadvornik # Date 1248819266 0 # Node ID 30eb78c26e9bc979a428ba627f717b74bb2e5d17 # Parent 768653891f37ab4d93e761ede3f8573006c1519a do not process sidecar files in bar_gps patch by Colin Clark diff -r 768653891f37 -r 30eb78c26e9b src/bar_gps.c --- a/src/bar_gps.c Sat Jul 25 08:13:13 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);