diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-11-26 09:38:43 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2009-11-26 09:38:43 +0100 |
commit | cd41bb7689f249d8274db8aff0d9b8b65ca860e3 (patch) | |
tree | 5f9b0dad7c36655ba769e95f7cad2f998465e97c /src/exiv2wrapper.cpp | |
parent | 807a521612225de719d5461cbeac5a7fd145a520 (diff) | |
download | pyexiv2-cd41bb7689f249d8274db8aff0d9b8b65ca860e3.tar.gz |
Use the (much more reliable) exiv2 type of the XMP tag to get its correct value.
Diffstat (limited to 'src/exiv2wrapper.cpp')
-rw-r--r-- | src/exiv2wrapper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/exiv2wrapper.cpp b/src/exiv2wrapper.cpp index 1b9dd8d..7455477 100644 --- a/src/exiv2wrapper.cpp +++ b/src/exiv2wrapper.cpp @@ -634,6 +634,8 @@ XmpTag::XmpTag(const std::string& key, Exiv2::Xmpdatum* datum): _key(key) _datum = new Exiv2::Xmpdatum(_key); } + _exiv2_type = _datum->typeName(); + const char* title = Exiv2::XmpProperties::propertyTitle(_key); if (title != 0) { @@ -664,6 +666,11 @@ const std::string XmpTag::getKey() return _key.key(); } +const std::string XmpTag::getExiv2Type() +{ + return _exiv2_type; +} + const std::string XmpTag::getType() { return _type; |