mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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 62f8603353030c33ee2c475192de6b68e23b1642)
This commit is contained in:
parent
c9fc15b5eb
commit
4cdc9d3857
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user