Commit e04860d6 authored by Lorenzo Marcantonio's avatar Lorenzo Marcantonio

Fixed issues when opening a pagelayout from the command line

parent f2055f6c
......@@ -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();
}
}
}
......
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