Update GAL options when loading viewer frame
Fixes https://gitlab.com/kicad/code/kicad/issues/5941
This commit is contained in:
parent
9728ceab0d
commit
488cfb9ec7
|
@ -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)
|
// Ensure axis are always drawn (initial default display was not drawn)
|
||||||
KIGFX::GAL_DISPLAY_OPTIONS& gal_opts = GetGalDisplayOptions();
|
KIGFX::GAL_DISPLAY_OPTIONS& gal_opts = GetGalDisplayOptions();
|
||||||
gal_opts.m_axesEnabled = true;
|
gal_opts.m_axesEnabled = true;
|
||||||
GetCanvas()->GetGAL()->SetAxesEnabled( true );
|
gal_opts.m_gridMinSpacing = 10.0;
|
||||||
|
gal_opts.NotifyChanged();
|
||||||
|
|
||||||
GetRenderSettings()->LoadColors( GetColorSettings() );
|
GetRenderSettings()->LoadColors( GetColorSettings() );
|
||||||
GetCanvas()->GetGAL()->SetAxesColor( m_colorSettings->GetColor( LAYER_SCHEMATIC_GRID_AXES ) );
|
GetCanvas()->GetGAL()->SetAxesColor( m_colorSettings->GetColor( LAYER_SCHEMATIC_GRID_AXES ) );
|
||||||
|
|
Loading…
Reference in New Issue