X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocument.cxx;h=af427024c915260e925eb8aaa820bd63770120e4;hb=85215aa078d5dde53cece0d5f38b53083efdef36;hp=e39d799bbed0e1f6d7c34a93599f7b9e6e32b959;hpb=d22baa64f4ee5306566910262d2b0e82997922a2;p=gdcm.git diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index e39d799b..af427024 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2005/06/20 15:58:53 $ - Version: $Revision: 1.248 $ + Date: $Date: 2005/06/22 08:01:41 $ + Version: $Revision: 1.249 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -169,8 +169,12 @@ bool Document::Load( std::string const &fileName ) std::string PhotometricInterpretation = GetEntryValue(0x0028,0x0004); if( PhotometricInterpretation == "PALETTE COLOR " ) { - LoadEntryBinArea(0x0028,0x1200); // gray LUT - /// FIXME FIXME FIXME + // FIXME + // Probabely this line should be outside the 'if' + // Try to find an image sample holding a 'gray LUT' + LoadEntryBinArea(0x0028,0x1200); // gray LUT + + /// FIXME /// The tags refered by the three following lines used to be CORRECTLY /// defined as having an US Value Representation in the public /// dictionary. BUT the semantics implied by the three following @@ -202,7 +206,7 @@ bool Document::Load( std::string const &fileName ) if ( modLutSeq !=0 ) { SQItem *sqi= modLutSeq->GetFirstSQItem(); - if ( !sqi ) + if ( sqi != 0 ) { BinEntry *b = sqi->GetBinEntry(0x0028,0x3006); if ( b != 0 )