{
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);