From ce0d1aca8d53361f5531dbd5e820759c00347a2c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 15 Feb 2018 19:24:24 +0000 Subject: [PATCH] Draw the grid and the grid origin in the grid colour. Fixes: lp:1749564 * https://bugs.launchpad.net/kicad/+bug/1749564 --- pcbnew/pcb_draw_panel_gal.cpp | 1 + pcbnew/tools/pcbnew_control.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/pcbnew/pcb_draw_panel_gal.cpp b/pcbnew/pcb_draw_panel_gal.cpp index 36983c00a9..15ea7c57d8 100644 --- a/pcbnew/pcb_draw_panel_gal.cpp +++ b/pcbnew/pcb_draw_panel_gal.cpp @@ -188,6 +188,7 @@ void PCB_DRAW_PANEL_GAL::UseColorScheme( const COLORS_DESIGN_SETTINGS* aSettings KIGFX::PCB_RENDER_SETTINGS* rs; rs = static_cast( m_view->GetPainter()->GetSettings() ); rs->ImportLegacyColors( aSettings ); + m_gal->SetGridColor( aSettings->GetLayerColor( LAYER_GRID ) ); m_gal->SetCursorColor( aSettings->GetItemColor( LAYER_CURSOR ) ); } diff --git a/pcbnew/tools/pcbnew_control.cpp b/pcbnew/tools/pcbnew_control.cpp index b8bc07ead4..f1266b6570 100644 --- a/pcbnew/tools/pcbnew_control.cpp +++ b/pcbnew/tools/pcbnew_control.cpp @@ -251,6 +251,7 @@ void PCBNEW_CONTROL::Reset( RESET_REASON aReason ) if( aReason == MODEL_RELOAD || aReason == GAL_SWITCH ) { m_gridOrigin->SetPosition( board()->GetGridOrigin() ); + m_gridOrigin->SetColor( m_frame->GetGridColor() ); getView()->Remove( m_gridOrigin.get() ); getView()->Add( m_gridOrigin.get() ); }