diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-01-14 19:55:18 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2009-01-14 19:55:18 +0100 |
commit | 0bbd2a4186249a3ef56d04718b5fc6ae2c29426a (patch) | |
tree | 2557bd640a11aa59a5c201beab7db54ad19ea8aa /src/exiv2wrapper.cpp | |
parent | cd660c12a72782ff6e9d919bda51db5de0e440ed (diff) | |
download | pyexiv2-0bbd2a4186249a3ef56d04718b5fc6ae2c29426a.tar.gz |
Retrieve the real type of xmp tags.
Diffstat (limited to 'src/exiv2wrapper.cpp')
-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 |