Mercurial > geeqie.yaz
changeset 1716:fca032fc27f7
strip the "lang=" prefix from exiv2 in all metadata formats
author | nadvornik |
---|---|
date | Sat, 12 Sep 2009 16:37:05 +0000 |
parents | bc89bb2f07c1 |
children | 61bd3a2f633d |
files | src/exiv2.cc |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/exiv2.cc Sat Sep 12 16:03:09 2009 +0000 +++ b/src/exiv2.cc Sat Sep 12 16:37:05 2009 +0000 @@ -1009,11 +1009,11 @@ else { str = item.toString(); - if (str.length() > 5 && str.substr(0, 5) == "lang=") - { - std::string::size_type pos = str.find_first_of(' '); - if (pos != std::string::npos) str = str.substr(pos+1); - } + } + if (str.length() > 5 && str.substr(0, 5) == "lang=") + { + std::string::size_type pos = str.find_first_of(' '); + if (pos != std::string::npos) str = str.substr(pos+1); } list = g_list_append(list, utf8_validate_or_convert(str.c_str())); #if EXIV2_TEST_VERSION(0,16,0)