]> Creatis software - gdcm.git/commitdiff
Fix 'delimitors' Print()
authorjpr <jpr>
Thu, 20 Oct 2005 07:23:50 +0000 (07:23 +0000)
committerjpr <jpr>
Thu, 20 Oct 2005 07:23:50 +0000 (07:23 +0000)
src/gdcmDataEntry.cxx

index ebe2409dd7e7428120a1f136057555597a7c3768..6c7a11b813f1900a2b16857dfbc783e9bdaa9eb4 100644 (file)
@@ -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;