mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Eeschema, fille polygons: fix HitTest inside polygon.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19255
This commit is contained in:
parent
5feeea8310
commit
776075ee35
@ -1185,8 +1185,9 @@ bool EDA_SHAPE::hitTest( const VECTOR2I& aPosition, int aAccuracy ) const
|
||||
{
|
||||
if( !m_poly.COutline( 0 ).IsClosed() )
|
||||
{
|
||||
SHAPE_POLY_SET copy( m_poly );
|
||||
copy.Outline( 0 ).Append( copy.Outline( 0 ).CPoint( 0 ) );
|
||||
// Only one outline is expected
|
||||
SHAPE_LINE_CHAIN copy( m_poly.COutline( 0 ) );
|
||||
copy.SetClosed( true );
|
||||
return copy.Collide( aPosition, maxdist );
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user