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:
Jeff Young 2025-09-08 18:29:46 +01:00
parent 0a162ded84
commit 93b0004175

View File

@ -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;
} }