X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestBuildUpDicomDir.cxx;h=4037663d7d537d6890c18a69a4eddee92ed80a67;hb=14922bc6265c1a1e183e1643f70fa57c413b5d99;hp=ac2a79bd62da64ca782ca00025a5cb2518ba1417;hpb=de5fc413dc579fc61f7e04397efd1dc1087fe3cf;p=gdcm.git diff --git a/Testing/TestBuildUpDicomDir.cxx b/Testing/TestBuildUpDicomDir.cxx index ac2a79bd..4037663d 100644 --- a/Testing/TestBuildUpDicomDir.cxx +++ b/Testing/TestBuildUpDicomDir.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestBuildUpDicomDir.cxx,v $ Language: C++ - Date: $Date: 2005/04/19 10:03:22 $ - Version: $Revision: 1.2 $ + Date: $Date: 2005/07/08 13:39:57 $ + Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -185,7 +185,9 @@ int TestBuildUpDicomDir(int argc, char *argv[]) delete dcmdir; // Read the newly written DicomDir - gdcm::DicomDir *newDicomDir = new gdcm::DicomDir("NewDICOMDIR"); + gdcm::DicomDir *newDicomDir = new gdcm::DicomDir(); + newDicomDir->SetFileName("NewDICOMDIR"); + newDicomDir->Load( ); if( !newDicomDir->IsReadable() ) { std::cout<<" Written DicomDir 'NewDICOMDIR'"