From: jpr Date: Thu, 2 Jun 2005 14:20:14 +0000 (+0000) Subject: Harden gdcm::File::IsReadable(), in order not to be confused any longer X-Git-Tag: Version1.2.bp~630 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=d0e362583615e5803435c665f19398c9b7f23499;p=gdcm.git Harden gdcm::File::IsReadable(), in order not to be confused any longer by lost of Pixel Element --- 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; }