Mercurial > hg > forks > geeqie
changeset 567:1ffddc1f6cf9
exif_get_formatted_by_key(): skip prefix when comparing.
author | Laurent Monin <geeqie@norz.org> |
---|---|
date | Sat, 03 May 2008 20:49:25 +0000 |
parents | fe00cebd415b |
children | 77da13cb250b |
files | src/exif-common.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/exif-common.c Sat May 03 20:40:50 2008 +0000 +++ b/src/exif-common.c Sat May 03 20:49:25 2008 +0000 @@ -460,8 +460,9 @@ if (key_valid) *key_valid = TRUE; + key = key + 10; for (i = 0; ExifFormattedList[i].key; i++) - if (strcmp(key, ExifFormattedList[i].key) == 0) + if (strcmp(key, ExifFormattedList[i].key + 10) == 0) return ExifFormattedList[i].build_func(exif); }