From 9f0b41c57d667fd893c6da1065d098fffe4d701d Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Sat, 16 Feb 2008 07:26:47 +0000 Subject: [PATCH] Fixed XmpKey::tagLabel() for custom keys (bug reported by Vladimir Nadvornik) --- src/properties.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/properties.cpp b/src/properties.cpp index 6c03807f..078b29ab 100644 --- a/src/properties.cpp +++ b/src/properties.cpp @@ -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