From d0e362583615e5803435c665f19398c9b7f23499 Mon Sep 17 00:00:00 2001 From: jpr Date: Thu, 2 Jun 2005 14:20:14 +0000 Subject: [PATCH] Harden gdcm::File::IsReadable(), in order not to be confused any longer by lost of Pixel Element --- src/gdcmFile.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index c0adb104..b15e4ec1 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/05/29 21:56:36 $ - Version: $Revision: 1.239 $ + Date: $Date: 2005/06/02 14:20:14 $ + Version: $Revision: 1.240 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -210,7 +210,10 @@ bool File::IsReadable() { return false; // "Pixel Representation" i.e. 'Sign' } - + if ( !GetDocEntry(GrPixel, NumPixel) ) + { + return false; // Pixel Dicom Element not found :-( + } return true; } -- 2.46.1