From 488cfb9ec774cfac80b74053c26d5c77eff28558 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 8 Feb 2021 17:43:03 -0800 Subject: [PATCH] Update GAL options when loading viewer frame Fixes https://gitlab.com/kicad/code/kicad/issues/5941 --- eeschema/symbol_viewer_frame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/symbol_viewer_frame.cpp b/eeschema/symbol_viewer_frame.cpp index c40c336903..2828676435 100644 --- a/eeschema/symbol_viewer_frame.cpp +++ b/eeschema/symbol_viewer_frame.cpp @@ -134,7 +134,8 @@ SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAM // Ensure axis are always drawn (initial default display was not drawn) KIGFX::GAL_DISPLAY_OPTIONS& gal_opts = GetGalDisplayOptions(); gal_opts.m_axesEnabled = true; - GetCanvas()->GetGAL()->SetAxesEnabled( true ); + gal_opts.m_gridMinSpacing = 10.0; + gal_opts.NotifyChanged(); GetRenderSettings()->LoadColors( GetColorSettings() ); GetCanvas()->GetGAL()->SetAxesColor( m_colorSettings->GetColor( LAYER_SCHEMATIC_GRID_AXES ) );