diff options
-rw-r--r-- | src/exiv2wrapper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/exiv2wrapper.cpp b/src/exiv2wrapper.cpp index 9a423c0..156a706 100644 --- a/src/exiv2wrapper.cpp +++ b/src/exiv2wrapper.cpp @@ -352,7 +352,6 @@ boost::python::tuple Image::getXmpTag(std::string key) Exiv2::XmpKey xmpKey = Exiv2::XmpKey(key); boost::python::list values; unsigned int occurences = 0; - std::string sTagType; for (Exiv2::XmpMetadata::iterator i = _xmpData.begin(); i != _xmpData.end(); ++i) @@ -361,7 +360,6 @@ boost::python::tuple Image::getXmpTag(std::string key) { values.append(i->toString()); ++occurences; - sTagType = i->typeName(); } } if (occurences > 0) @@ -369,6 +367,7 @@ boost::python::tuple Image::getXmpTag(std::string key) std::string sTagName = xmpKey.tagName(); std::string sTagLabel = xmpKey.tagLabel(); std::string sTagDesc(Exiv2::XmpProperties::propertyDesc(xmpKey)); + std::string sTagType(Exiv2::XmpProperties::propertyInfo(xmpKey)->xmpValueType_); return boost::python::make_tuple(key, sTagName, sTagLabel, sTagDesc, sTagType, values); } else |