Add a bit of margin to line selection hit testing

This commit is contained in:
Jon Evans 2019-05-07 22:51:46 -04:00
parent c02777a721
commit 3e5005698c
2 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ bool SCH_BUS_ENTRY_BASE::HitTest( const wxPoint& aPosition, int aAccuracy ) cons
{
// Insure minimum accuracy
if( aAccuracy == 0 )
aAccuracy = GetPenSize() / 2;
aAccuracy = ( GetPenSize() / 2 ) + 4;
return TestSegmentHit( aPosition, m_pos, m_End(), aAccuracy );
}

View File

@ -699,7 +699,7 @@ bool SCH_LINE::HitTest( const wxPoint& aPosition, int aAccuracy ) const
{
// Insure minimum accuracy
if( aAccuracy == 0 )
aAccuracy = GetPenSize() / 2;
aAccuracy = ( GetPenSize() / 2 ) + 4;
return TestSegmentHit( aPosition, m_start, m_end, aAccuracy );
}