Eeschema: fix pin starting wire bus bug
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/10819
This commit is contained in:
parent
b7c9a1ad55
commit
013d6d088f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue