Make lines and bus entries less frustrating to select

This commit is contained in:
Jon Evans 2019-04-29 20:46:21 -04:00
parent c343b36a39
commit 9741b43dae
2 changed files with 8 additions and 0 deletions

View File

@ -347,6 +347,10 @@ BITMAP_DEF SCH_BUS_BUS_ENTRY::GetMenuImage() const
bool SCH_BUS_ENTRY_BASE::HitTest( const wxPoint& aPosition, int aAccuracy ) const
{
// Insure minimum accuracy
if( aAccuracy == 0 )
aAccuracy = GetPenSize() / 2;
return TestSegmentHit( aPosition, m_pos, m_End(), aAccuracy );
}

View File

@ -705,6 +705,10 @@ bool SCH_LINE::operator <( const SCH_ITEM& aItem ) const
bool SCH_LINE::HitTest( const wxPoint& aPosition, int aAccuracy ) const
{
// Insure minimum accuracy
if( aAccuracy == 0 )
aAccuracy = GetPenSize() / 2;
return TestSegmentHit( aPosition, m_start, m_end, aAccuracy );
}