From 70b87f8529d100b2238e8b4df23e2bf3673cc398 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 4 Nov 2020 12:30:12 +0000 Subject: [PATCH] Fix missing parameter to colour fetching. Fixes https://gitlab.com/kicad/code/kicad/issues/6279 --- pcbnew/pcb_painter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index f4ab8c2f75..1a258d9826 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -813,7 +813,7 @@ void PCB_PAINTER::draw( const D_PAD* aPad, int aLayer ) m_gal->SetFontItalic( false ); m_gal->SetFontUnderlined( false ); m_gal->SetTextMirrored( false ); - m_gal->SetStrokeColor( m_pcbSettings.GetColor( NULL, aLayer ) ); + m_gal->SetStrokeColor( m_pcbSettings.GetColor( aPad, aLayer ) ); m_gal->SetIsStroke( true ); m_gal->SetIsFill( false );