mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 00:21:25 +00:00
Change behavior of polygons at the end of drawing.
This commit is contained in:
parent
8776437f29
commit
670936096e
@ -1422,6 +1422,10 @@ void EDA_SHAPE::endEdit( bool aClosed )
|
||||
if( poly.CPoint( poly.GetPointCount() - 2 ) == poly.CLastPoint() )
|
||||
{
|
||||
poly.SetClosed( aClosed );
|
||||
}
|
||||
else
|
||||
{
|
||||
poly.SetClosed( false );
|
||||
poly.Remove( poly.GetPointCount() - 1 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user