# HG changeset patch # User nadvornik # Date 1252773425 0 # Node ID fca032fc27f74c8ccad36dca4f377ee94ff757b6 # Parent bc89bb2f07c1d9afcc874f9effc1e4960e8d1515 strip the "lang=" prefix from exiv2 in all metadata formats diff -r bc89bb2f07c1 -r fca032fc27f7 src/exiv2.cc --- 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)