Fixed XmpKey::tagLabel() for custom keys (bug reported by Vladimir Nadvornik)

This commit is contained in:
Andreas Huggel 2008-02-16 07:26:47 +00:00
parent a818b4c052
commit 9f0b41c57d

View File

@ -915,7 +915,9 @@ namespace Exiv2 {
std::string XmpKey::tagLabel() const
{
return XmpProperties::propertyTitle(*this);
const char* pt = XmpProperties::propertyTitle(*this);
if (!pt) return tagName();
return pt;
}
std::string XmpKey::ns() const