X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestCopyDicom.cxx;h=c0c5164ca429c9d0ccb4478f6b2b814b02217462;hb=7a6f4850521b56e6b907cb8c7938471898613fa4;hp=9220962c4098437541ccb0531f9a88793e72c36e;hpb=efd3ea11eb9d6da5f3034f5e46649d250b90c75a;p=gdcm.git diff --git a/Testing/TestCopyDicom.cxx b/Testing/TestCopyDicom.cxx index 9220962c..c0c5164c 100644 --- a/Testing/TestCopyDicom.cxx +++ b/Testing/TestCopyDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestCopyDicom.cxx,v $ Language: C++ - Date: $Date: 2005/02/09 15:31:15 $ - Version: $Revision: 1.40 $ + Date: $Date: 2005/07/08 13:39:57 $ + Version: $Revision: 1.41 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -42,9 +42,12 @@ int CopyDicom(std::string const &filename, //////////////// Step 1: std::cout << " 1..."; - gdcm::File *originalH = new gdcm::File( filename ); + + gdcm::File *originalH = new gdcm::File( ); gdcm::File *copyH = new gdcm::File( ); + originalH->SetFileName( filename ); + originalH->Load( ); //First of all copy the file, field by field //////////////// Step 2: