Fix EESchema crash bug on Mac with wxWidgets 2.9

This commit is contained in:
Jason Oster 2010-08-03 09:19:55 -04:00 committed by Wayne Stambaugh
parent d24caad246
commit 86a6c4de3b
1 changed files with 4 additions and 1 deletions

View File

@ -104,7 +104,10 @@ void WinEDA_App::MacOpenFile( const wxString &fileName )
wxFileName filename = fileName;
WinEDA_SchematicFrame * frame = ((WinEDA_SchematicFrame*) GetTopWindow());
if(!filename.FileExists())
if( !frame )
return;
if( !filename.FileExists() )
return;
frame->LoadOneEEProject( fileName, false );