#831: Also delete image tags from the Exif container during encoding.

This commit is contained in:
Andreas Huggel
2012-07-05 11:09:04 +00:00
parent 3e24b6ed23
commit 02f48be40c
+3 -5
View File
@@ -820,10 +820,6 @@ namespace Exiv2 {
{
assert(object != 0);
// Skip image tags of existing TIFF image - they were copied earlier -
// but add and encode image tags of new images (creation)
if (isImageTag(object->tag(), object->group())) return;
ExifData::iterator pos = exifData_.end();
const Exifdatum* ed = datum;
if (ed == 0) {
@@ -855,7 +851,9 @@ namespace Exiv2 {
// duplicate tags
object->idx_ = ed->idx();
}
if (ed) {
// Skip encoding image tags of existing TIFF image - they were copied earlier -
// but encode image tags of new images (creation)
if (ed && !isImageTag(object->tag(), object->group())) {
const EncoderFct fct = findEncoderFct_(make_, object->tag(), object->group());
if (fct) {
// If an encoding function is registered for the tag, use it