diff --git a/pcbnew/class_track.cpp b/pcbnew/class_track.cpp index 7a40e066fb..02872390bf 100644 --- a/pcbnew/class_track.cpp +++ b/pcbnew/class_track.cpp @@ -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 ); } diff --git a/pcbnew/class_track.h b/pcbnew/class_track.h index 4340c33e6d..c5ca9d03d7 100644 --- a/pcbnew/class_track.h +++ b/pcbnew/class_track.h @@ -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