pcbnew: Don't reset triangular points for intersection
We prevent the creation of invalid polygons by keeping the converging lines from intersecting. This test doesn't make sense for triangular polygons as they always intersect and we want to allow them to move outside of the singular point. Fixes: lp:1831481 * https://bugs.launchpad.net/kicad/+bug/1831481
This commit is contained in:
parent
55757039fa
commit
966173c129
|
@ -173,8 +173,12 @@ void EC_CONVERGING::Apply( EDIT_LINE& aHandle )
|
||||||
|
|
||||||
if( OPT_VECTOR2I originEndIntersect = endSide.Intersect( originSide ) )
|
if( OPT_VECTOR2I originEndIntersect = endSide.Intersect( originSide ) )
|
||||||
{
|
{
|
||||||
origin.SetPosition( *originEndIntersect );
|
// Triangle intersect by definition
|
||||||
end.SetPosition( *originEndIntersect );
|
if( m_editPoints.LinesSize() > 3 )
|
||||||
|
{
|
||||||
|
origin.SetPosition( *originEndIntersect );
|
||||||
|
end.SetPosition( *originEndIntersect );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue