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
This commit is contained in:
parent
f5692584f2
commit
4bfb8ef457
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue