Revert "Restored 0.27.2 "toString()" behaviour of Exifdatum.value().toString() for CommentValue."
This reverts commit ecae9dc6eb.
This commit is contained in:
parent
2866415322
commit
c6167258ce
12
src/exif.cpp
12
src/exif.cpp
@ -226,16 +226,8 @@ namespace Exiv2 {
|
||||
if ( ti ) {
|
||||
fct = ti->printFct_;
|
||||
if ( ti->typeId_ == comment ) {
|
||||
fct=NULL;
|
||||
const Exiv2::CommentValue* cv = dynamic_cast<const Exiv2::CommentValue*>(&value());
|
||||
Exiv2::CommentValue::CharsetId csId = cv->charsetId();
|
||||
if ( csId != CommentValue::undefined ) {
|
||||
os << "charset=" << CommentValue::CharsetInfo::name(csId) << " ";
|
||||
}
|
||||
os << cv->comment();
|
||||
#if 0
|
||||
os << "|| value().toString() = " << value().toString();
|
||||
#endif
|
||||
os << value().toString();
|
||||
fct=NULL;
|
||||
}
|
||||
}
|
||||
if ( fct ) fct(os, value(), pMetadata);
|
||||
|
||||
@ -548,6 +548,10 @@ namespace Exiv2 {
|
||||
|
||||
std::ostream& CommentValue::write(std::ostream& os) const
|
||||
{
|
||||
CharsetId csId = charsetId();
|
||||
if (csId != undefined) {
|
||||
os << "charset=" << CharsetInfo::name(csId) << " ";
|
||||
}
|
||||
return os << comment();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user