X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmFile.cxx;h=1eeac151d2be4778668a926446689f0b50040bbc;hb=f5bd1453e95d404bb816e77abcdbf6aef6f526d5;hp=8820c7cf440201b4920f252b13c49a882dbe02e2;hpb=d0ccf9f5c0c50821ec7a62aa4f84641392cf73b6;p=gdcm.git diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index 8820c7cf..1eeac151 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/10/18 21:19:57 $ - Version: $Revision: 1.279 $ + Date: $Date: 2005/10/19 09:27:24 $ + Version: $Revision: 1.280 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -2000,9 +2000,9 @@ bool File::ReadTag(uint16_t testGroup, uint16_t testElem) { gdcmWarningMacro( "Wrong Item Tag found:" << " We should have found tag (" - << std::hex << testGroup << "," << testElem << ")" << std::endl + << DictEntry::TranslateToKey(testGroup,testElem) << ")" << std::endl << " but instead we encountered tag (" - << std::hex << itemTagGroup << "," << itemTagElem << ")" + << DictEntry::TranslateToKey(itemTagGroup,itemTagElem) << ")" << " at address: " << " 0x(" << (unsigned int)currentPosition << ")" ) ; Fp->seekg(positionOnEntry, std::ios::beg); @@ -2031,7 +2031,8 @@ uint32_t File::ReadTagLength(uint16_t testGroup, uint16_t testElem) if ( !ReadTag(testGroup, testElem) ) { - gdcmErrorMacro( "ReadTag did not succeed..." ); + gdcmErrorMacro( "ReadTag did not succeed... for " + << DictEntry::TranslateToKey(testGroup,testElem) ); return 0; }