diff options
Diffstat (limited to 'src/exiv2wrapper.cpp')
-rw-r--r-- | src/exiv2wrapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exiv2wrapper.cpp b/src/exiv2wrapper.cpp index d217144..a5ae4aa 100644 --- a/src/exiv2wrapper.cpp +++ b/src/exiv2wrapper.cpp @@ -749,14 +749,14 @@ XmpTag::XmpTag(const std::string& key, Exiv2::Xmpdatum* datum): _key(key) if (_from_datum) { _datum = datum; + _exiv2_type = datum->typeName(); } else { _datum = new Exiv2::Xmpdatum(_key); + _exiv2_type = Exiv2::TypeInfo::typeName(Exiv2::XmpProperties::propertyType(_key)); } - _exiv2_type = Exiv2::TypeInfo::typeName(Exiv2::XmpProperties::propertyType(_key)); - const char* title = Exiv2::XmpProperties::propertyTitle(_key); if (title != 0) { |