From ba503bedcff507b876b124f2e99a4677f4332547 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 18 Oct 2020 22:06:17 -0400 Subject: [PATCH] Use the correct parent for the pl editor color pane --- pagelayout_editor/pl_editor_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagelayout_editor/pl_editor_frame.cpp b/pagelayout_editor/pl_editor_frame.cpp index 3131ab7905..0908069c55 100644 --- a/pagelayout_editor/pl_editor_frame.cpp +++ b/pagelayout_editor/pl_editor_frame.cpp @@ -453,7 +453,7 @@ void PL_EDITOR_FRAME::InstallPreferences( PAGED_DIALOG* aParent, book->AddPage( new wxPanel( book ), _( "Page Layout Editor" ) ); book->AddSubPage( new PANEL_GAL_DISPLAY_OPTIONS( this, aParent ), _( "Display Options" ) ); - book->AddSubPage( new PANEL_PL_EDITOR_COLOR_SETTINGS( this, aParent ), _( "Colors" ) ); + book->AddSubPage( new PANEL_PL_EDITOR_COLOR_SETTINGS( this, aParent->GetTreebook() ), _( "Colors" ) ); aHotkeysPanel->AddHotKeys( GetToolManager() ); }