From 57492054d705b224298d299ea03a345cc1a81671 Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 6 Sep 2005 15:34:29 +0000 Subject: [PATCH] Improve Print method --- src/gdcmFileHelper.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/gdcmFileHelper.cxx b/src/gdcmFileHelper.cxx index 7e0a018c..67274d99 100644 --- a/src/gdcmFileHelper.cxx +++ b/src/gdcmFileHelper.cxx @@ -4,8 +4,8 @@ Module: $RCSfile: gdcmFileHelper.cxx,v $ Language: C++ - Date: $Date: 2005/08/30 15:36:18 $ - Version: $Revision: 1.56 $ + Date: $Date: 2005/09/06 15:34:29 $ + Version: $Revision: 1.57 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1591,8 +1591,11 @@ void FileHelper::Print(std::ostream &os, std::string const &) FileInternal->SetPrintLevel(PrintLevel); FileInternal->Print(os); - PixelReadConverter->SetPrintLevel(PrintLevel); - PixelReadConverter->Print(os); + if ( FileInternal->IsReadable() ) + { + PixelReadConverter->SetPrintLevel(PrintLevel); + PixelReadConverter->Print(os); + } } //----------------------------------------------------------------------------- -- 2.48.1