Browse Source

Fix an issue in Debug mode

pull/1/head
jean-pierre charras 12 years ago
parent
commit
fff2f017d8
  1. 3
      common/page_layout/class_worksheet_layout.cpp

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

Loading…
Cancel
Save