Fix incorrect handling of Aperture Macros, especially when using exposure OFF in macros.

Aperture macro shapes are now drawn using polygons.
This commit is contained in:
jean-pierre charras
2016-06-03 18:42:24 +02:00
parent b4ad18a3ea
commit 2b459acfe9
6 changed files with 144 additions and 203 deletions
+1 -2
View File
@@ -152,7 +152,6 @@ int D_CODE::GetShapeDim( GERBER_DRAW_ITEM* aParent )
void D_CODE::DrawFlashedShape( GERBER_DRAW_ITEM* aParent,
EDA_RECT* aClipBox, wxDC* aDC, EDA_COLOR_T aColor,
EDA_COLOR_T aAltColor,
wxPoint aShapePos, bool aFilledShape )
{
int radius;
@@ -160,7 +159,7 @@ void D_CODE::DrawFlashedShape( GERBER_DRAW_ITEM* aParent,
switch( m_Shape )
{
case APT_MACRO:
GetMacro()->DrawApertureMacroShape( aParent, aClipBox, aDC, aColor, aAltColor,
GetMacro()->DrawApertureMacroShape( aParent, aClipBox, aDC, aColor,
aShapePos, aFilledShape);
break;