* Eeschema: Ensure axis are always drawn in libedit and viewlib
(From master branch)
This commit is contained in:
parent
5a655779d7
commit
c4efa95b4a
|
@ -230,6 +230,10 @@ LIB_EDIT_FRAME::LIB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
|
|
||||||
LoadSettings( config() );
|
LoadSettings( config() );
|
||||||
|
|
||||||
|
// Ensure axis are always drawn, whatever LoadSettings has found in config
|
||||||
|
KIGFX::GAL_DISPLAY_OPTIONS& gal_opts = GetGalDisplayOptions();
|
||||||
|
gal_opts.m_axesEnabled = true;
|
||||||
|
|
||||||
m_dummyScreen = new SCH_SCREEN( aKiway );
|
m_dummyScreen = new SCH_SCREEN( aKiway );
|
||||||
SetScreen( m_dummyScreen );
|
SetScreen( m_dummyScreen );
|
||||||
GetScreen()->m_Center = true;
|
GetScreen()->m_Center = true;
|
||||||
|
|
|
@ -139,6 +139,10 @@ LIB_VIEW_FRAME::LIB_VIEW_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAME_T aFrame
|
||||||
GetScreen()->m_Center = true; // Axis origin centered on screen.
|
GetScreen()->m_Center = true; // Axis origin centered on screen.
|
||||||
LoadSettings( config() );
|
LoadSettings( config() );
|
||||||
|
|
||||||
|
// Ensure axis are always drawn, whatever LoadSettings has found in config
|
||||||
|
KIGFX::GAL_DISPLAY_OPTIONS& gal_opts = GetGalDisplayOptions();
|
||||||
|
gal_opts.m_axesEnabled = true;
|
||||||
|
|
||||||
SetSize( m_FramePos.x, m_FramePos.y, m_FrameSize.x, m_FrameSize.y );
|
SetSize( m_FramePos.x, m_FramePos.y, m_FrameSize.x, m_FrameSize.y );
|
||||||
|
|
||||||
SetPresetGrid( m_LastGridSizeId );
|
SetPresetGrid( m_LastGridSizeId );
|
||||||
|
|
Loading…
Reference in New Issue