Export rectangular aperture GBR_SEGMENTS as polygons.
Fixes https://gitlab.com/kicad/code/kicad/issues/14136
This commit is contained in:
parent
9893921d76
commit
7a50654f3b
|
@ -297,6 +297,7 @@ void GBR_TO_PCB_EXPORTER::export_copper_item( const GERBER_DRAW_ITEM* aGbrItem,
|
||||||
export_flashed_copper_item( aGbrItem, aLayer );
|
export_flashed_copper_item( aGbrItem, aLayer );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GBR_CIRCLE:
|
||||||
case GBR_ARC:
|
case GBR_ARC:
|
||||||
export_segarc_copper_item( aGbrItem, aLayer );
|
export_segarc_copper_item( aGbrItem, aLayer );
|
||||||
break;
|
break;
|
||||||
|
@ -314,8 +315,26 @@ void GBR_TO_PCB_EXPORTER::export_copper_item( const GERBER_DRAW_ITEM* aGbrItem,
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case GBR_SEGMENT:
|
||||||
|
{
|
||||||
|
D_CODE* code = aGbrItem->GetDcodeDescr();
|
||||||
|
|
||||||
|
if( code && code->m_ApertType == APT_RECT )
|
||||||
|
{
|
||||||
|
if( aGbrItem->m_ShapeAsPolygon.OutlineCount() == 0 )
|
||||||
|
const_cast<GERBER_DRAW_ITEM*>( aGbrItem )->ConvertSegmentToPolygon();
|
||||||
|
|
||||||
|
writePcbPolygon( aGbrItem->m_ShapeAsPolygon, aLayer );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
export_segline_copper_item( aGbrItem, aLayer );
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
export_segline_copper_item( aGbrItem, aLayer );
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue