From: jpr Date: Thu, 7 Jul 2005 10:12:32 +0000 (+0000) Subject: Due to something stupid in the gdcm::File constructor, the file was parsed twice X-Git-Tag: Version1.2.bp~353 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0aae6ba79c12b82eee08dd7f2e22397e1eca6acf;p=gdcm.git Due to something stupid in the gdcm::File constructor, the file was parsed twice when we used old style, e.g : gdcm::File *f = new gdcm::File(fileName); instead of new style, e.g. : gdcm::File *f = new gdcm::File( ); f->SetLoadMode ( choose what you want *not* to load here ); f->Load( filename ); --- diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 16b7796e..a166a0e7 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2005/07/06 11:01:08 $ - Version: $Revision: 1.247 $ + Date: $Date: 2005/07/07 10:12:32 $ + Version: $Revision: 1.248 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -65,12 +65,12 @@ File::File(): * @param filename name of the file whose header we want to analyze */ File::File( std::string const &filename ) - :Document(filename) + :Document( ) { RLEInfo = new RLEFramesInfo; JPEGInfo = new JPEGFragmentsInfo; - Load( filename ); + Load( filename ); // gdcm::Document is first Loaded, then the 'File part' } /**