Commit fff2f017 authored by jean-pierre charras's avatar jean-pierre charras

Fix an issue in Debug mode

parent 9076bfc9
......@@ -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() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment