Performance enhancement.
This commit is contained in:
parent
90fd58871d
commit
b5742d09f8
|
@ -708,6 +708,10 @@ bool SCH_LINE::operator <( const SCH_ITEM& aItem ) const
|
|||
|
||||
bool SCH_LINE::HitTest( const wxPoint& aPosition, int aAccuracy ) const
|
||||
{
|
||||
// Performance enhancement for connection-building
|
||||
if( aPosition == m_start || aPosition == m_end )
|
||||
return true;
|
||||
|
||||
// Insure minimum accuracy
|
||||
if( aAccuracy == 0 )
|
||||
aAccuracy = ( GetPenSize() / 2 ) + 4;
|
||||
|
|
Loading…
Reference in New Issue