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