changeset 1316:1c8dfedefefe

Fix anonymization generating non-portable DICOM files
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 12 Feb 2015 14:12:11 +0100
parents 0c735fed8953
children 55b9b6d9f8cc 7316546c3513
files NEWS OrthancServer/FromDcmtkBridge.cpp
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Thu Feb 12 13:28:47 2015 +0100
+++ b/NEWS	Thu Feb 12 14:12:11 2015 +0100
@@ -33,6 +33,7 @@
 * Code refactorings
 * Fix issue 25 (AET with underscore not allowed)
 * Fix replacement and insertion of private DICOM tags
+* Fix anonymization generating non-portable DICOM files
 
 
 Version 0.8.5 (2014/11/04)
--- a/OrthancServer/FromDcmtkBridge.cpp	Thu Feb 12 13:28:47 2015 +0100
+++ b/OrthancServer/FromDcmtkBridge.cpp	Thu Feb 12 14:12:11 2015 +0100
@@ -696,6 +696,7 @@
     // Create the meta-header information
     DcmFileFormat ff(&dataSet);
     ff.validateMetaInfo(xfer);
+    ff.removeInvalidGroups();
 
     // Create a memory buffer with the proper size
     uint32_t s = ff.calcElementLength(xfer, encodingType);