Hi

I have found a small problem with the GPS map facility. If an image has an xmp sidecar file, clicking on the marker on the map does not show a thumbnail of the image.

This is because the image selection list contains the sidecar files as well the the image file. A marker is created for the sidecar file, and this hides the marker for the image file.

I have attached a patch that corrects this problem.

Colin Clark..
Index: src/bar_gps.c
===================================================================
--- src/bar_gps.c	(revision 1797)
+++ src/bar_gps.c	(working copy)
@@ -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);
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to