From: malaterre Date: Wed, 27 Jul 2005 03:02:12 +0000 (+0000) Subject: BUG: Put back deprecated code since it makes the test pass. I believe the new approac... X-Git-Tag: Version1.2.bp~255 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ca1c8a4541a05aaec4fbe7bb3b23e18cbe2d31bd;p=gdcm.git BUG: Put back deprecated code since it makes the test pass. I believe the new approach is not working since the call are slightyl different wether you create a FileHelper with a filename or create a FileHelper and then set the filename it breaks everything... --- diff --git a/Testing/TestWriteSimple.cxx b/Testing/TestWriteSimple.cxx index c17ba159..27386509 100644 --- a/Testing/TestWriteSimple.cxx +++ b/Testing/TestWriteSimple.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestWriteSimple.cxx,v $ Language: C++ - Date: $Date: 2005/07/23 02:02:44 $ - Version: $Revision: 1.32 $ + Date: $Date: 2005/07/27 03:02:12 $ + Version: $Revision: 1.33 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -246,9 +246,10 @@ int WriteSimple(Image &img) // Step 5 : Read the written image std::cout << "5..."; - gdcm::FileHelper *reread = new gdcm::FileHelper( ); - reread->SetFileName( fileName.str() ); - reread->Load(); + gdcm::FileHelper *reread = new gdcm::FileHelper( fileName.str() ); + //gdcm::FileHelper *reread = new gdcm::FileHelper( ); + //reread->SetFileName( fileName.str() ); + //reread->Load(); if( !reread->GetFile()->IsReadable() ) { std::cerr << "Failed" << std::endl