From c27ee1ece38b98c41df286cb1a2e2c6d31f23013 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 19 Feb 2018 00:04:03 +0000 Subject: [PATCH] Fix disappearing origin lines in modedit (and modview). Fixes: lp:1745701 * https://bugs.launchpad.net/kicad/+bug/1745701 --- pcbnew/footprint_edit_frame.cpp | 1 + pcbnew/footprint_viewer_frame.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/pcbnew/footprint_edit_frame.cpp b/pcbnew/footprint_edit_frame.cpp index e07659b7f0..247025c49e 100644 --- a/pcbnew/footprint_edit_frame.cpp +++ b/pcbnew/footprint_edit_frame.cpp @@ -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 ); diff --git a/pcbnew/footprint_viewer_frame.cpp b/pcbnew/footprint_viewer_frame.cpp index d98cd2443b..02750c67fd 100644 --- a/pcbnew/footprint_viewer_frame.cpp +++ b/pcbnew/footprint_viewer_frame.cpp @@ -39,6 +39,7 @@ #include #include #include +#include #include #include @@ -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