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:
parent
9a2332dfcf
commit
62f8603353
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue