From 35f2ef438dfa41741913cfea775e55f2ed1ee258 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 25 Aug 2005 13:12:43 +0000 Subject: [PATCH] According to Mathieu's suggestion, *all* the elements 0x000 are now named 'Group Length' (even if they belong to a Shadow Group') --- src/gdcmDocEntry.cxx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/gdcmDocEntry.cxx b/src/gdcmDocEntry.cxx index d8bb7775..d2f9a0c6 100644 --- a/src/gdcmDocEntry.cxx +++ b/src/gdcmDocEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.cxx,v $ Language: C++ - Date: $Date: 2005/08/24 12:09:12 $ - Version: $Revision: 1.63 $ + Date: $Date: 2005/08/25 13:12:43 $ + Version: $Revision: 1.64 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -265,13 +265,19 @@ void DocEntry::Print(std::ostream &os, std::string const & ) s << "[" << vr << "] "; + std::string name; + if ( GetElement() == 0x0000 ) + name = "Group Length"; + else + name = GetName(); + if (PrintLevel >= 1) { s.setf(std::ios::left); - s << std::setw(66-GetName().length()) << " "; + s << std::setw(66-name.length()) << " "; } - s << "[" << GetName()<< "]"; + s << "[" << name << "]"; os << s.str(); } -- 2.48.1