From 2cb23bd43abf226e0fa851565a228003d512c857 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 11 Jul 2023 17:35:30 +0200 Subject: [PATCH] VIA on solder mask: fix incorrect size (radius) of displayed mask --- 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 212bcb44bb..20eeea1503 100644 --- a/pcbnew/pcb_painter.cpp +++ b/pcbnew/pcb_painter.cpp @@ -1006,7 +1006,7 @@ void PCB_PAINTER::draw( const PCB_VIA* aVia, int aLayer ) m_gal->SetIsStroke( false ); m_gal->SetLineWidth( margin ); - m_gal->DrawCircle( center, ( aVia->GetWidth() + margin ) / 2.0 ); + m_gal->DrawCircle( center, aVia->GetWidth() / 2.0 + margin ); } else if( aLayer == LAYER_VIA_THROUGH || m_pcbSettings.IsPrinting() ) {