Eeschema: allow auto-wiring from zero-length pins (e.g. power symbols)

This commit is contained in:
Jon Evans 2021-02-17 12:03:55 -05:00
parent b6a7981e62
commit 309fb0825c
2 changed files with 10 additions and 0 deletions

View File

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

View File

@ -687,6 +687,8 @@ public:
bool GetIncludeOnBoard() const { return m_onBoard; } bool GetIncludeOnBoard() const { return m_onBoard; }
void SetIncludeOnBoard( bool aIncludeOnBoard ) { m_onBoard = aIncludeOnBoard; } void SetIncludeOnBoard( bool aIncludeOnBoard ) { m_onBoard = aIncludeOnBoard; }
bool IsPointClickableAnchor( const wxPoint& aPos ) const override;
private: private:
bool doIsConnected( const wxPoint& aPosition ) const override; bool doIsConnected( const wxPoint& aPosition ) const override;
}; };