Fix an issue in Debug mode

This commit is contained in:
jean-pierre charras 2013-07-23 12:35:58 +02:00
parent 9076bfc9f7
commit fff2f017d8
1 changed files with 1 additions and 2 deletions

View File

@ -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() )