# HG changeset patch # User Sebastien Jodogne # Date 1500021470 -7200 # Node ID dc7c8eebcc80f4ea516161f4f3e2bc106ff087a8 # Parent 65ffba10cace7cb34377588b6cfbe26aa700522e# Parent 09cce85735b92266e4dedb72e4e1876d06ab4fe9 merge diff -r 09cce85735b9 -r dc7c8eebcc80 OrthancServer/DicomModification.cpp --- a/OrthancServer/DicomModification.cpp Thu Jul 13 12:45:37 2017 +0200 +++ b/OrthancServer/DicomModification.cpp Fri Jul 14 10:37:50 2017 +0200 @@ -170,20 +170,22 @@ clearings_.erase(tag); RemoveInternal(tag); - if (tag.IsPrivate()) - { - privateTagsToKeep_.insert(tag); - } - if (tag == DICOM_TAG_STUDY_INSTANCE_UID) { keepStudyInstanceUid_ = true; } - - if (tag == DICOM_TAG_SERIES_INSTANCE_UID) + else if (tag == DICOM_TAG_SERIES_INSTANCE_UID) { keepSeriesInstanceUid_ = true; } + else if (tag.IsPrivate()) + { + privateTagsToKeep_.insert(tag); + } + else + { + LOG(WARNING) << "Marking this tag as to be kept has no effect: " << tag.Format(); + } MarkNotOrthancAnonymization(); }