Browse Source

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).
master
Jeff Young 4 weeks ago
parent
commit
93b0004175
  1. 5
      common/tool/edit_points.cpp

5
common/tool/edit_points.cpp

@ -61,11 +61,8 @@ EDIT_POINT* EDIT_POINTS::FindPoint( const VECTOR2I& aLocation, KIGFX::VIEW *aVie
if( m_allowPoints )
{
// Check from the end so that we get the topmost point
for( auto r_it = m_points.rbegin(); r_it != m_points.rend(); ++r_it )
for( EDIT_POINT& point : m_points )
{
EDIT_POINT& point = *r_it;
if( point.WithinPoint( aLocation, size ) )
return &point;
}

Loading…
Cancel
Save