diff --git a/pagelayout_editor/pl_editor.cpp b/pagelayout_editor/pl_editor.cpp index 42ef6e708e..7f3faf6c36 100644 --- a/pagelayout_editor/pl_editor.cpp +++ b/pagelayout_editor/pl_editor.cpp @@ -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(); + } } }