From 7cb37a242568f7905f1e16d5cc8004e869f0d9f5 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 20 Oct 2005 07:23:50 +0000 Subject: [PATCH] Fix 'delimitors' Print() --- src/gdcmDataEntry.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gdcmDataEntry.cxx b/src/gdcmDataEntry.cxx index ebe2409d..6c7a11b8 100644 --- a/src/gdcmDataEntry.cxx +++ b/src/gdcmDataEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDataEntry.cxx,v $ Language: C++ - Date: $Date: 2005/10/18 18:42:51 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/10/20 07:23:50 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -501,6 +501,12 @@ void DataEntry::Print(std::ostream &os, std::string const & ) os << "D "; DocEntry::Print(os); + uint16_t g = GetGroup(); + if (g == 0xfffe) // delimiters have NO value + { + return; // just to avoid identing all the remaining code + } + std::ostringstream s; TSAtr v; -- 2.48.1