Don't deduplicate symbol polygons

SHAPE_LINE_CHAIN will, by default, remove duplicate points when
appending.  We don't want to do this when constructing our polygons in
symbol editor, so we need to explicitly call the routine without
deduplication

Fixes https://gitlab.com/kicad/code/kicad/issues/10289

(cherry picked from commit 62f8603353)
This commit is contained in:
Seth Hillbrand 2022-01-07 08:23:39 -08:00
parent c9fc15b5eb
commit 4cdc9d3857
1 changed files with 4 additions and 1 deletions

View File

@ -569,7 +569,10 @@ void EE_POINT_EDITOR::updateParentItem() const
shape->GetPolyShape().NewOutline();
for( unsigned i = 0; i < m_editPoints->PointsSize(); ++i )
shape->GetPolyShape().Append( mapCoords( m_editPoints->Point( i ).GetPosition() ) );
{
wxPoint pt = mapCoords( m_editPoints->Point( i ).GetPosition() );
shape->GetPolyShape().Append( pt.x, pt.y, -1, -1, true );
}
break;