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
This commit is contained in:
Seth Hillbrand 2022-01-07 08:23:39 -08:00
parent 9a2332dfcf
commit 62f8603353
1 changed files with 4 additions and 1 deletions

View File

@ -516,7 +516,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;