Mercurial > hg > orthanc
diff OrthancServer/DicomModification.cpp @ 1982:b5d4f9c156ad
Modification of instances can now replace PixelData
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 22 Apr 2016 10:28:55 +0200 |
parents | b1291df2f780 |
children | 3b40ca7470cc |
line wrap: on
line diff
--- a/OrthancServer/DicomModification.cpp Fri Apr 22 09:05:06 2016 +0200 +++ b/OrthancServer/DicomModification.cpp Fri Apr 22 10:28:55 2016 +0200 @@ -141,7 +141,7 @@ mapped = previous->second; } - dicom.Replace(*tag, mapped); + dicom.Replace(*tag, mapped, false /* don't try and decode data URI scheme for UIDs */, DicomReplaceMode_InsertIfAbsent); } DicomModification::DicomModification() @@ -459,7 +459,7 @@ for (Replacements::const_iterator it = replacements_.begin(); it != replacements_.end(); ++it) { - toModify.Replace(it->first, *it->second, DicomReplaceMode_InsertIfAbsent); + toModify.Replace(it->first, *it->second, true /* decode data URI scheme */, DicomReplaceMode_InsertIfAbsent); } // (4) Update the DICOM identifiers