From 7007601655b1fed1e3ec6d881adbdf4e6c670452 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 23 Jul 2013 12:35:58 +0200 Subject: [PATCH] Fix an issue in Debug mode --- common/page_layout/class_worksheet_layout.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/page_layout/class_worksheet_layout.cpp b/common/page_layout/class_worksheet_layout.cpp index 21ca823543..6f2cad1662 100644 --- a/common/page_layout/class_worksheet_layout.cpp +++ b/common/page_layout/class_worksheet_layout.cpp @@ -192,8 +192,7 @@ const wxString WORKSHEET_LAYOUT::MakeFullFileName( const wxString& aShortFileNam { wxFileName fn = aShortFileName; wxString fullFileName = aShortFileName; - - if( fn.GetPath().IsEmpty() ) + if( fn.GetPath().IsEmpty() && !fn.GetFullName().IsEmpty() ) { wxString name = wxGetApp().GetLibraryPathList().FindValidPath( fn.GetFullName() ); if( !name.IsEmpty() )