Fix disappearing origin lines in modedit (and modview).

Fixes: lp:1745701
* https://bugs.launchpad.net/kicad/+bug/1745701
This commit is contained in:
Jeff Young 2018-02-19 00:04:03 +00:00 committed by Wayne Stambaugh
parent 447fd1bf02
commit c27ee1ece3
2 changed files with 4 additions and 0 deletions

View File

@ -271,6 +271,7 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
// LoadSettings() *after* creating m_LayersManager, because LoadSettings()
// initialize parameters in m_LayersManager
LoadSettings( config() );
GetGalDisplayOptions().m_axesEnabled = true;
SetScreen( new PCB_SCREEN( GetPageSettings().GetSizeIU() ) );
GetScreen()->SetMaxUndoItems( m_UndoRedoCountMax );

View File

@ -39,6 +39,7 @@
#include <lib_id.h>
#include <confirm.h>
#include <bitmaps.h>
#include <gal/graphics_abstraction_layer.h>
#include <class_board.h>
#include <class_module.h>
@ -177,6 +178,7 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
GetScreen()->m_Center = true; // Center coordinate origins on screen.
LoadSettings( config() );
GetGalDisplayOptions().m_axesEnabled = true;
SetSize( m_FramePos.x, m_FramePos.y, m_FrameSize.x, m_FrameSize.y );
@ -299,6 +301,7 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
Zoom_Automatique( false );
#endif
GetGalCanvas()->GetGAL()->SetAxesEnabled( true );
UseGalCanvas( switchToGalCanvas );
if( !IsModal() ) // For modal mode, calling ShowModal() will show this frame