Handle 2581 knockout text with multiple outlines

Previous commit removed the handling of multiple outlines.  This
restores Jeff's initial, correct handling, only minus the "UserSpecial"
nest

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18042
This commit is contained in:
Seth Hillbrand 2024-05-27 07:26:56 -07:00
parent f3b57c20af
commit 9c24a39156
1 changed files with 3 additions and 3 deletions

View File

@ -600,14 +600,14 @@ void PCB_IO_IPC2581::addLineDesc( wxXmlNode* aNode, int aWidth, LINE_STYLE aDash
void PCB_IO_IPC2581::addKnockoutText( wxXmlNode* aContentNode, PCB_TEXT* aText )
{
wxXmlNode* text_node = appendNode( aContentNode, "UserStandard" );
SHAPE_POLY_SET finalPoly;
aText->TransformTextToPolySet( finalPoly, 0, m_board->GetDesignSettings().m_MaxError,
aText->TransformTextToPolySet( finalPoly, 0, ARC_HIGH_DEF,
ERROR_INSIDE );
finalPoly.Fracture( SHAPE_POLY_SET::PM_FAST );
addContourNode( text_node, finalPoly );
for( int ii = 0; ii < finalPoly.OutlineCount(); ++ii )
addContourNode( aContentNode, finalPoly, ii );
}