Browse Source

Make lines and bus entries less frustrating to select

pull/15/head
Jon Evans 7 years ago
parent
commit
9741b43dae
  1. 4
      eeschema/sch_bus_entry.cpp
  2. 4
      eeschema/sch_line.cpp

4
eeschema/sch_bus_entry.cpp

@ -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 );
}

4
eeschema/sch_line.cpp

@ -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…
Cancel
Save