Module: $RCSfile: gdcmFileHelper.cxx,v $
Language: C++
- Date: $Date: 2005/03/04 09:45:04 $
- Version: $Revision: 1.25 $
+ Date: $Date: 2005/03/04 11:15:56 $
+ Version: $Revision: 1.26 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
DocEntry *oldE = FileInternal->GetDocEntry(group, elem);
BinEntry *newE;
- if( oldE )
- if( oldE->GetVR()!=vr )
- oldE = NULL;
+ if( oldE ) // Is this really usefull?
+ if( oldE->GetVR()!=vr )
+ {
+ //oldE = NULL;
+ gdcmWarningMacro( " Unconsistent VR for Bin Entry : [" << oldE->GetVR()
+ << "] vs [" << vr << "] for " <<
+ std::hex << group << "|" << elem);
+ delete oldE;
+ }
if( oldE )
{
newE = new BinEntry(oldE->GetDictEntry());