7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 17:39:17 +00:00

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

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();
}
}
}