]> Creatis software - gdcm.git/commitdiff
According to Mathieu's suggestion, *all* the elements 0x000
authorjpr <jpr>
Thu, 25 Aug 2005 13:12:43 +0000 (13:12 +0000)
committerjpr <jpr>
Thu, 25 Aug 2005 13:12:43 +0000 (13:12 +0000)
are now named 'Group Length' (even if they belong to a Shadow Group')

src/gdcmDocEntry.cxx

index d8bb77755ae566ff4a39c0cc1c4c2e156b07bdca..d2f9a0c6aa768ef068ba71b690bf3087ade1545b 100644 (file)
@@ -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();      
 }