Eeschema: Ensure axis are always drawn in libedit and viewlib
Fixes: lp:1822408 https://bugs.launchpad.net/kicad/+bug/1822408
This commit is contained in:
parent
459a972116
commit
f18807ea0f
|
@ -183,6 +183,10 @@ LIB_EDIT_FRAME::LIB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
|||
|
||||
LoadSettings( config() );
|
||||
|
||||
// Ensure axis are always drawn
|
||||
KIGFX::GAL_DISPLAY_OPTIONS& gal_opts = GetGalDisplayOptions();
|
||||
gal_opts.m_axesEnabled = true;
|
||||
|
||||
m_dummyScreen = new SCH_SCREEN( aKiway );
|
||||
SetScreen( m_dummyScreen );
|
||||
GetScreen()->m_Center = true;
|
||||
|
|
|
@ -88,7 +88,7 @@ TOOL_ACTION EE_ACTIONS::editWithLibEdit( "eeschema.EditorControl.editWithSymbolE
|
|||
|
||||
TOOL_ACTION EE_ACTIONS::showLibraryBrowser( "eeschema.EditorControl.showLibraryBrowser",
|
||||
AS_GLOBAL, 0,
|
||||
_( "Symbol Library Browser" ), "",
|
||||
_( "Symbol Library Browser" ), _( "Browse symbol libraries" ),
|
||||
library_browse_xpm );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::enterSheet( "eeschema.EditorControl.enterSheet",
|
||||
|
|
|
@ -136,6 +136,10 @@ LIB_VIEW_FRAME::LIB_VIEW_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAME_T aFrame
|
|||
GetScreen()->m_Center = true; // Axis origin centered on screen.
|
||||
LoadSettings( config() );
|
||||
|
||||
// Ensure axis are always drawn (initial default display was not drawn)
|
||||
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 );
|
||||
|
||||
setupTools();
|
||||
|
|
Loading…
Reference in New Issue