From: jpr Date: Mon, 17 Jan 2005 13:24:15 +0000 (+0000) Subject: Oops. X-Git-Tag: Version1.0.bp~293 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4dca895b33bbd4fd9e21a30e004026ba00a4feb5;p=gdcm.git Oops. I forgot to initilize the loop (copy-paste from Example/PrintDicomDir was not enough) --- diff --git a/Testing/TestDicomDir.cxx b/Testing/TestDicomDir.cxx index c778078e..7c4ccb3b 100644 --- a/Testing/TestDicomDir.cxx +++ b/Testing/TestDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestDicomDir.cxx,v $ Language: C++ - Date: $Date: 2005/01/17 11:01:26 $ - Version: $Revision: 1.27 $ + Date: $Date: 2005/01/17 13:24:15 $ + Version: $Revision: 1.28 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -46,6 +46,7 @@ int TestDicomDir(int argc, char* argv[]) file += "/DICOMDIR"; } +std::cout << "----------------- " << file << "-----" < 2) { @@ -63,9 +64,15 @@ int TestDicomDir(int argc, char* argv[]) delete e1; return 1; } + else + { + std::cout<<" DicomDir '"<InitTraversal(); // Test if the DicomDir contains any Patient - if( e1->GetNextEntry() ) + if( !e1->GetNextEntry() ) { std::cout<<" DicomDir '"<