Mercurial > hg > orthanc
changeset 2321:65ffba10cace
warning message in DicomModification::Keep()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 14 Jul 2017 10:37:33 +0200 |
parents | 8bca2c8eaead |
children | dc7c8eebcc80 |
files | OrthancServer/DicomModification.cpp |
diffstat | 1 files changed, 9 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/DicomModification.cpp Wed Jul 12 22:39:28 2017 +0200 +++ b/OrthancServer/DicomModification.cpp Fri Jul 14 10:37:33 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(); }