File: GDCM_4digitsgroup.patch

package info (click to toggle)
nifti2dicom 0.4.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,056 kB
  • ctags: 525
  • sloc: cpp: 4,131; xml: 60; makefile: 9
file content (20 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Index: Source/DataStructureAndEncodingDefinition/gdcmDataSet.h
===================================================================
--- Source/DataStructureAndEncodingDefinition/gdcmDataSet.h	(revision 6152)
+++ Source/DataStructureAndEncodingDefinition/gdcmDataSet.h	(working copy)
@@ -129,13 +129,13 @@
   void Insert(const DataElement& de) {
     // FIXME: there is a special case where a dataset can have value < 0x8, see:
     // $ gdcmdump --csa gdcmData/SIEMENS-JPEG-CorruptFrag.dcm 
-    if( de.GetTag().GetGroup() >= 0x0008 || de.GetTag().GetGroup() == 0x4 )
+    if( de.GetTag().GetGroup() >= 0x0008 || de.GetTag().GetGroup() == 0x0004 )
       {
       InsertDataElement( de );
       }
     else
       {
-      gdcmErrorMacro( "Cannot add element with group < 0x0008 and != 0x4 in the dataset" );
+      gdcmErrorMacro( "Cannot add element with group < 0x0008 and != 0x0004 in the dataset" );
       }
   }
   /// Replace a dataelement with another one