From becc0232b4dac547a00a2e011503894bbbbfa823 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 26 May 2024 08:03:38 -0700 Subject: [PATCH] Fixup IPC2581 knockout text Fixes https://gitlab.com/kicad/code/kicad/-/issues/18042 --- pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp b/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp index e64015e412..51fb860416 100644 --- a/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp +++ b/pcbnew/pcb_io/ipc2581/pcb_io_ipc2581.cpp @@ -600,18 +600,15 @@ void PCB_IO_IPC2581::addLineDesc( wxXmlNode* aNode, int aWidth, LINE_STYLE aDash void PCB_IO_IPC2581::addKnockoutText( wxXmlNode* aContentNode, PCB_TEXT* aText ) { - // If we are stroking a polygon, we need two contours. This is only allowed inside a - // "UserSpecial" shape - wxXmlNode* special_node = appendNode( aContentNode, "UserSpecial" ); - + wxXmlNode* text_node = appendNode( aContentNode, "UserStandard" ); SHAPE_POLY_SET finalPoly; aText->TransformTextToPolySet( finalPoly, 0, m_board->GetDesignSettings().m_MaxError, ERROR_INSIDE ); finalPoly.Fracture( SHAPE_POLY_SET::PM_FAST ); - for( int ii = 0; ii < finalPoly.OutlineCount(); ++ii ) - addContourNode( special_node, finalPoly, ii, FILL_T::FILLED_SHAPE, 0, LINE_STYLE::SOLID ); + addContourNode( text_node, finalPoly ); + }