From cc2b107649bb308bb8e5131acb19e669e79e1b46 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 22 Dec 2022 11:59:45 -0500 Subject: [PATCH] Footprint Viewer: resolve canvas type after menus are created SaveSettings can't be called until the menus are in place Fixes https://gitlab.com/kicad/code/kicad/-/issues/13243 --- pcbnew/footprint_viewer_frame.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/footprint_viewer_frame.cpp b/pcbnew/footprint_viewer_frame.cpp index 1c603f9f95..1e460043c4 100644 --- a/pcbnew/footprint_viewer_frame.cpp +++ b/pcbnew/footprint_viewer_frame.cpp @@ -216,9 +216,6 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent LoadSettings( config() ); GetGalDisplayOptions().m_axesEnabled = true; - // Call resolveCanvasType after loading settings: - resolveCanvasType(); - // Create the manager and dispatcher & route draw panel events to the dispatcher m_toolManager = new TOOL_MANAGER; m_toolManager->SetEnvironment( GetBoard(), drawPanel->GetView(), @@ -249,6 +246,9 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent ReCreateLibraryList(); UpdateTitle(); + // Call resolveCanvasType after loading settings: + resolveCanvasType(); + // If a footprint was previously loaded, reload it if( getCurNickname().size() && getCurFootprintName().size() ) {