Update GAL options when loading viewer frame

Fixes https://gitlab.com/kicad/code/kicad/issues/5941
This commit is contained in:
Seth Hillbrand 2021-02-08 17:43:03 -08:00
parent 9728ceab0d
commit 488cfb9ec7
1 changed files with 2 additions and 1 deletions

View File

@ -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 ) );