mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Go back to checking points from the front.
We want to prefer a primary point (ie: a rectangle corner) to a secondary point (ie: a rounded-rect radius adjuster).
This commit is contained in:
parent
0a162ded84
commit
93b0004175
@ -61,11 +61,8 @@ EDIT_POINT* EDIT_POINTS::FindPoint( const VECTOR2I& aLocation, KIGFX::VIEW *aVie
|
|||||||
|
|
||||||
if( m_allowPoints )
|
if( m_allowPoints )
|
||||||
{
|
{
|
||||||
// Check from the end so that we get the topmost point
|
for( EDIT_POINT& point : m_points )
|
||||||
for( auto r_it = m_points.rbegin(); r_it != m_points.rend(); ++r_it )
|
|
||||||
{
|
{
|
||||||
EDIT_POINT& point = *r_it;
|
|
||||||
|
|
||||||
if( point.WithinPoint( aLocation, size ) )
|
if( point.WithinPoint( aLocation, size ) )
|
||||||
return &point;
|
return &point;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user