Fixed issues when opening a pagelayout from the command line

This commit is contained in:
Lorenzo Marcantonio 2013-08-20 15:44:42 +02:00
parent f2055f6c5d
commit e04860d61b
1 changed files with 3 additions and 1 deletions

View File

@ -103,7 +103,6 @@ bool EDA_APP::OnInit()
if( fn.IsOk() )
{
wxSetWorkingDirectory( fn.GetPath() );
bool success = frame->LoadPageLayoutDescrFile( fn.GetFullPath() );
if( !success )
{
@ -113,7 +112,10 @@ bool EDA_APP::OnInit()
wxMessageBox( msg );
}
else
{
descrLoaded = true;
frame->OnNewPageLayout();
}
}
}