metadata: use copyXmpTo* instead of moveXmpTo*

(cherry picked from commit d3ac9618f8a3e2688f7a084419eeebbe24a76664)
This commit is contained in:
Alberto Griggio 2020-06-03 02:47:17 -07:00 committed by Lawrence Lee
parent 0415d556fc
commit 1e0cf45445
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F

View File

@ -196,8 +196,8 @@ void Exiv2Metadata::do_merge_xmp(Exiv2::Image *dst) const
auto xmp = getXmpSidecar(src_);
Exiv2::ExifData exif;
Exiv2::IptcData iptc;
Exiv2::moveXmpToIptc(xmp, iptc);
Exiv2::moveXmpToExif(xmp, exif);
Exiv2::copyXmpToIptc(xmp, iptc);
Exiv2::copyXmpToExif(xmp, exif);
for (auto &datum : exif) {
dst->exifData()[datum.key()] = datum;