]> Creatis software - gdcm.git/blobdiff - src/gdcmSeqEntry.cxx
Fix 'delimitors' Print()
[gdcm.git] / src / gdcmSeqEntry.cxx
index 11033cdbab0e9bb284ac21db73f06a5354710864..0cfd3643ab4be942ce125f1382c6a07b0938b1ad 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmSeqEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/02/05 01:37:09 $
-  Version:   $Revision: 1.54 $
+  Date:      $Date: 2005/10/18 08:35:50 $
+  Version:   $Revision: 1.58 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -46,7 +46,7 @@ SeqEntry::SeqEntry( DictEntry *e )
 }
 
 /**
- * \brief   Constructor from a given SeqEntry
+ * \brief   Constructor from a given DocEntry
  * @param   e Pointer to existing Doc entry
  * @param   depth depth level of the current Seq entry
  */
@@ -227,10 +227,12 @@ void SeqEntry::Print( std::ostream &os, std::string const & )
    // at end, print the sequence terminator item, if any
    if (DelimitorMode)
    {
-      for ( int i = 0; i < SQDepthLevel; i++ )
-      {
+      int i;
+      for ( i = 0; i < SQDepthLevel; i++ )
+         os << "   | " ;
+      os << " --- "  << std::endl;
+      for ( i = 0; i < SQDepthLevel; i++ )
          os << "   | " ;
-      }
       if (SeqTerm != NULL)
       {
          SeqTerm->SetPrintLevel(PrintLevel);