Mercurial > hg > orthanc
changeset 2322:dc7c8eebcc80
merge
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 14 Jul 2017 10:37:50 +0200 |
parents | 65ffba10cace (diff) 09cce85735b9 (current diff) |
children | f5fc61337bdf |
files | |
diffstat | 1 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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(); }