diff OrthancServer/Sources/DicomInstanceToStore.cpp @ 4137:6774605d4341

keep only one signature for FromDcmtkBridge::ExtractDicomSummary()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Aug 2020 17:38:55 +0200
parents 2724977419fb
children 0ddc5297a8ab
line wrap: on
line diff
--- a/OrthancServer/Sources/DicomInstanceToStore.cpp	Thu Aug 06 15:55:03 2020 +0200
+++ b/OrthancServer/Sources/DicomInstanceToStore.cpp	Thu Aug 06 17:38:55 2020 +0200
@@ -241,20 +241,19 @@
       assert(parsed_.HasContent());
 
       // At this point, we have parsed the DICOM file
+      std::set<DicomTag> ignoreTagLength;
     
       if (!summary_.HasContent())
       {
         summary_.Allocate();
         FromDcmtkBridge::ExtractDicomSummary(summary_.GetContent(), 
                                              *parsed_.GetContent().GetDcmtkObject().getDataset(),
-                                             ORTHANC_MAXIMUM_TAG_LENGTH);
+                                             ORTHANC_MAXIMUM_TAG_LENGTH, ignoreTagLength);
       }
     
       if (!json_.HasContent())
       {
         json_.Allocate();
-
-        std::set<DicomTag> ignoreTagLength;
         FromDcmtkBridge::ExtractDicomAsJson(json_.GetContent(), 
                                             *parsed_.GetContent().GetDcmtkObject().getDataset(),
                                             ignoreTagLength);