Make lines and bus entries less frustrating to select
This commit is contained in:
parent
c343b36a39
commit
9741b43dae
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue