Add a bit of margin to line selection hit testing
This commit is contained in:
parent
c02777a721
commit
3e5005698c
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue