]> Creatis software - gdcm.git/commitdiff
To avoid spuroius warning messages when debug is ON
authorjpr <jpr>
Tue, 23 Aug 2005 14:41:59 +0000 (14:41 +0000)
committerjpr <jpr>
Tue, 23 Aug 2005 14:41:59 +0000 (14:41 +0000)
src/gdcmDocument.cxx

index 7001f202d8ed5b90d7b0d0b49a26843e7476e1ba..4511aab548db6c6a17ba7bf003d49fbf75804b8c 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/08/23 12:57:49 $
-  Version:   $Revision: 1.265 $
+  Date:      $Date: 2005/08/23 14:41:59 $
+  Version:   $Revision: 1.266 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -1049,7 +1049,7 @@ void Document::ParseDES(DocEntrySet *set, long offset,
             if ( (delimitor && offset!=132) || 
                 (!delim_mode && ((long)(Fp->tellg())-offset) >= l_max) )
             {
-               if (offset!=132)
+               if (delimitor && offset!=132)
                {
                   gdcmWarningMacro( "in ParseDES : Item found out of a Sequence "
                                   << newValEntry->GetKey()