diff OrthancServer/Search/HierarchicalMatcher.cpp @ 2200:af60b784d2b8

Ignore "Group Length" tags in C-FIND queries
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 Dec 2016 14:40:34 +0100
parents 655489d9165d
children a3a65de1840f
line wrap: on
line diff
--- a/OrthancServer/Search/HierarchicalMatcher.cpp	Fri Dec 02 16:58:35 2016 +0100
+++ b/OrthancServer/Search/HierarchicalMatcher.cpp	Tue Dec 06 14:40:34 2016 +0100
@@ -86,9 +86,9 @@
       }
 
       DicomTag tag(FromDcmtkBridge::Convert(element->getTag()));
-      if (tag == DICOM_TAG_SPECIFIC_CHARACTER_SET)
+      if (tag == DICOM_TAG_SPECIFIC_CHARACTER_SET ||   // Ignore encoding
+          tag.GetElement() == 0x0000)  // Ignore all "Group Length" tags
       {
-        // Ignore this specific tag
         continue;
       }