Mercurial > geeqie.yaz
changeset 1683:30eb78c26e9b
do not process sidecar files in bar_gps
patch by Colin Clark
author | nadvornik |
---|---|
date | Tue, 28 Jul 2009 22:14:26 +0000 |
parents | 768653891f37 |
children | 51820482c7e5 |
files | src/bar_gps.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);