changeset 4016:c675d77b82ab

fix creation of sequence in private tag
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Jun 2020 17:20:32 +0200
parents f6cb16413325
children c783f4f29390
files Core/DicomParsing/FromDcmtkBridge.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core/DicomParsing/FromDcmtkBridge.cpp	Mon Jun 08 17:11:09 2020 +0200
+++ b/Core/DicomParsing/FromDcmtkBridge.cpp	Mon Jun 08 17:20:32 2020 +0200
@@ -1718,7 +1718,8 @@
       case Json::arrayValue:
       {
         const char* p = NULL;
-        if (!privateCreator.empty())
+        if (tag.IsPrivate() &&
+            !privateCreator.empty())
         {
           p = privateCreator.c_str();
         }