From ec305081aec2900d9698e71e179cca946412c73e Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 19 May 2009 15:07:58 +0000 Subject: [PATCH] We allow now to deal with 'non standard' 64 bits 'real' values (1 line hack!) --- src/gdcmFileHelper.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gdcmFileHelper.cxx b/src/gdcmFileHelper.cxx index f27d8d99..b61faace 100644 --- a/src/gdcmFileHelper.cxx +++ b/src/gdcmFileHelper.cxx @@ -4,8 +4,8 @@ Module: $RCSfile: gdcmFileHelper.cxx,v $ Language: C++ - Date: $Date: 2008/09/15 15:49:22 $ - Version: $Revision: 1.138 $ + Date: $Date: 2009/05/19 15:07:58 $ + Version: $Revision: 1.139 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1632,7 +1632,10 @@ void FileHelper::CheckMandatoryElements() std::ostringstream s; // check 'Bits Allocated' vs decent values int nbBitsAllocated = FileInternal->GetBitsAllocated(); - if ( (nbBitsAllocated == 0 || nbBitsAllocated > 32) + + // We allow now to deal with 'non standard' 64 bits 'real' values + + if ( (nbBitsAllocated == 0 || nbBitsAllocated > 64) // was 32 || ( nbBitsAllocated > 8 && nbBitsAllocated <16) ) { CopyMandatoryEntry(0x0028,0x0100,"16","US"); -- 2.45.0