diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index e9cfdcb06a..4818b23567 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -1876,3 +1876,11 @@ void SCH_COMPONENT::ClearBrightenedPins() } +bool SCH_COMPONENT::IsPointClickableAnchor( const wxPoint& aPos ) const +{ + for( auto& pin : m_pins ) + if( pin->IsPointClickableAnchor( aPos ) ) + return true; + + return false; +} diff --git a/eeschema/sch_component.h b/eeschema/sch_component.h index 1ec3930bb6..d78eb9fdae 100644 --- a/eeschema/sch_component.h +++ b/eeschema/sch_component.h @@ -687,6 +687,8 @@ public: bool GetIncludeOnBoard() const { return m_onBoard; } void SetIncludeOnBoard( bool aIncludeOnBoard ) { m_onBoard = aIncludeOnBoard; } + bool IsPointClickableAnchor( const wxPoint& aPos ) const override; + private: bool doIsConnected( const wxPoint& aPosition ) const override; };