From 4bfb8ef457f21c6e3a74adc020090537c50b06a0 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Tue, 10 Sep 2019 13:53:43 -0400 Subject: [PATCH] Pcbnew: fix Eagle footprint library polygon pad sizes. Eagle includes the width of the polygon line when generating polygon pad sizes where KiCad does not. This simple fix inflates polygon pads half of the Eagle polygon line width. Fixes lp:1833687 https://bugs.launchpad.net/kicad/+bug/1833687 --- pcbnew/eagle_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/eagle_plugin.cpp b/pcbnew/eagle_plugin.cpp index 8d26b5aa92..5e91fba5ce 100644 --- a/pcbnew/eagle_plugin.cpp +++ b/pcbnew/eagle_plugin.cpp @@ -1836,6 +1836,8 @@ void EAGLE_PLUGIN::packagePolygon( MODULE* aModule, wxXmlNode* aTree ) const dwg->SetStart0( *pts.begin() ); dwg->SetEnd0( pts.back() ); dwg->SetDrawCoord(); + dwg->GetPolyShape().Inflate( p.width.ToPcbUnits() / 2, 32, + SHAPE_POLY_SET::ALLOW_ACUTE_CORNERS ); } void EAGLE_PLUGIN::packageCircle( MODULE* aModule, wxXmlNode* aTree ) const