From b1489cbe40da35654d5673723a38c2f5309fb2f4 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 9 Jun 2013 18:50:57 +0200 Subject: [PATCH] Remove a useless message shown only in debug mode, about page layout file not found --- common/page_layout_reader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/page_layout_reader.cpp b/common/page_layout_reader.cpp index f79f58eb20..50981110ad 100644 --- a/common/page_layout_reader.cpp +++ b/common/page_layout_reader.cpp @@ -578,8 +578,8 @@ void WORKSHEET_LAYOUT::SetLayout() if( fullFileName.IsEmpty() || !wxFileExists( fullFileName ) ) { - #ifdef DEBUG - if( !wxFileExists( fullFileName ) ) + #if 0 + if( !fullFileName.IsEmpty() && !wxFileExists( fullFileName ) ) { wxLogMessage( wxT("Page layout file <%s> not found"), fullFileName.GetData() );