Replace more-than-half-line algorithm with greedy/stingy check.
Fixes https://gitlab.com/kicad/code/kicad/issues/10860
This commit is contained in:
parent
cb20a39693
commit
1825905011
|
@ -1353,14 +1353,9 @@ bool EE_SELECTION_TOOL::selectMultiple()
|
|||
if( selectionRect.Contains( line->GetEndPoint() ) || isGreedy )
|
||||
flags |= ENDPOINT;
|
||||
|
||||
|
||||
// If no ends were selected, select whole line (both ends)
|
||||
// Also select both ends if the selection overlaps the midpoint
|
||||
if( ( !( flags & STARTPOINT ) && !( flags & ENDPOINT ) )
|
||||
|| selectionRect.Contains( line->GetMidPoint() ) )
|
||||
{
|
||||
if( !( flags & STARTPOINT ) && !( flags & ENDPOINT ) )
|
||||
flags = STARTPOINT | ENDPOINT;
|
||||
}
|
||||
}
|
||||
|
||||
if( m_subtractive || ( m_exclusive_or && aItem->IsSelected() ) )
|
||||
|
|
Loading…
Reference in New Issue