Missing const caused unpickability of tracks

This commit is contained in:
Lorenzo Marcantonio 2014-05-06 17:14:47 +02:00
parent b933ef8565
commit e4508a65ff
2 changed files with 2 additions and 2 deletions

View File

@ -1231,7 +1231,7 @@ void VIA::GetMsgPanelInfoBase( std::vector< MSG_PANEL_ITEM >& aList )
}
bool TRACK::HitTest( const wxPoint& aPosition )
bool TRACK::HitTest( const wxPoint& aPosition ) const
{
return TestSegmentHit( aPosition, m_Start, m_End, m_Width / 2 );
}

View File

@ -223,7 +223,7 @@ public:
const KICAD_T scanTypes[] );
virtual bool HitTest( const wxPoint& aPosition );
virtual bool HitTest( const wxPoint& aPosition ) const;
/** @copydoc BOARD_ITEM::HitTest(const EDA_RECT& aRect,
* bool aContained = true, int aAccuracy ) const