Setting meta data on a xmp sidecar image object (patch & ... ยป setcomment_patch.diff
src/xmpsidecar.cpp (Arbeitskopie) | ||
---|---|---|
76 | 76 |
return "application/rdf+xml"; |
77 | 77 |
} |
78 | 78 | |
79 |
void XmpSidecar::setComment(const std::string& /*comment*/)
|
|
79 |
void XmpSidecar::setComment(const std::string& comment)
|
|
80 | 80 |
{ |
81 | 81 |
// not supported |
82 |
throw(Error(32, "Image comment", "XMP")); |
|
82 |
if (!comment.empty()) |
|
83 |
{ |
|
84 |
throw(Error(32, "Image comment", "XMP")); |
|
85 |
} |
|
83 | 86 |
} |
84 | 87 | |
85 | 88 |
void XmpSidecar::readMetadata() |