diff OrthancServer/OrthancFindRequestHandler.cpp @ 3342:63f59ad9381a

Fix issue #136 (C-Find request fails when found DICOM file does not have certain tags)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Apr 2019 13:36:13 +0200
parents 8ea7c4546c3a
children 94f4a18a79cc
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp	Fri Apr 05 13:02:57 2019 +0200
+++ b/OrthancServer/OrthancFindRequestHandler.cpp	Fri Apr 05 13:36:13 2019 +0200
@@ -371,7 +371,7 @@
     }
     else
     {
-      ParsedDicomFile dicom(result);
+      ParsedDicomFile dicom(result, GetDefaultDicomEncoding(), true /* be permissive, cf. issue #136 */);
 
       for (std::list<DicomTag>::const_iterator tag = sequencesToReturn.begin();
            tag != sequencesToReturn.end(); ++tag)