File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -144,11 +144,6 @@ namespace Exiv2 {
144144 copyExifToXmp (exifData_, xmpData_);
145145 copyIptcToXmp (iptcData_, xmpData_);
146146
147- // #589 - restore tags which were modified by the convertors
148- for (auto && it : copy) {
149- xmpData_[it.key ()] = it.value ();
150- }
151-
152147 // #1112 - restore dates if they lost their TZ info
153148 for (auto && date : dates_) {
154149 std::string sKey = date.first ;
@@ -163,6 +158,11 @@ namespace Exiv2 {
163158 }
164159 }
165160
161+ // #589 - restore tags which were modified by the convertors
162+ for (auto && it : copy) {
163+ xmpData_[it.key ()] = it.value ();
164+ }
165+
166166 if (XmpParser::encode (xmpPacket_, xmpData_,
167167 XmpParser::omitPacketWrapper|XmpParser::useCompactFormat) > 1 ) {
168168#ifndef SUPPRESS_WARNINGS
You can’t perform that action at this time.
0 commit comments