From d7a9e110c545712efabcbbbedcffe877e015b660 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Sat, 16 Nov 2024 11:46:09 -0500 Subject: [PATCH] Fix minor visual artifact in via painting --- pcbnew/pcb_painter.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcb_painter.cpp b/pcbnew/pcb_painter.cpp index 3822cc4ea2..ccd3b37c56 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -1085,6 +1085,9 @@ void PCB_PAINTER::draw( const PCB_VIA* aVia, int aLayer ) radius -= m_holePlatingThickness / 2.0; } + // Underpaint the hole so that there aren't artifacts at its edge + m_gal->SetIsFill( true ); + m_gal->DrawCircle( center, radius ); } else if( aLayer == LAYER_VIA_HOLES ) @@ -1096,8 +1099,6 @@ void PCB_PAINTER::draw( const PCB_VIA* aVia, int aLayer ) if( isBlindBuried && !m_pcbSettings.IsPrinting() ) { - radius += m_holePlatingThickness / 2.0; - m_gal->SetIsStroke( false ); m_gal->SetIsFill( true );