From 684a3fbcd85dd433f02b9bb873a9c0a7af759d02 Mon Sep 17 00:00:00 2001 From: regrain Date: Thu, 6 Jan 2005 09:34:58 +0000 Subject: [PATCH] * src/gdcmDocument.cxx : correct last JPR committed code source -- BeNours --- src/gdcmDocument.cxx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 53535b8b..2d595c5b 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2005/01/05 16:53:23 $ - Version: $Revision: 1.152 $ + Date: $Date: 2005/01/06 09:34:58 $ + Version: $Revision: 1.153 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -3143,14 +3143,9 @@ int Document::ComputeGroup0002Length( FileType filetype ) DocEntry *entry; Initialize(); - - for (;;) + entry = GetNextEntry(); + while(entry) { - entry = GetNextEntry(); - - if ( entry == 0 ) - break; - gr = entry->GetGroup(); if (gr == 0x0002) @@ -3172,6 +3167,8 @@ int Document::ComputeGroup0002Length( FileType filetype ) } } groupLength += 2 + 2 + 4 + entry->GetLength(); + + entry = GetNextEntry(); } return groupLength; } -- 2.48.1