Eeschema: fix pin starting wire bus bug

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/10819
This commit is contained in:
Mike Williams 2022-02-12 14:25:31 -05:00 committed by Ian McInerney
parent b7c9a1ad55
commit 013d6d088f
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent )
{
// For bus wire entries, we want to autostart a wire or a bus
// depending on what is connected to the other side.
auto entry = static_cast<SCH_BUS_WIRE_ENTRY*>( collector[0] );
auto entry = dynamic_cast<SCH_BUS_WIRE_ENTRY*>( collector[0] );
if( ( entry != nullptr ) && ( entry->m_connected_bus_item == nullptr ) )
newEvt = EE_ACTIONS::drawBus.MakeEvent();