Don't drop selection until unfold net has been chosen.

Fixes: lp:1831466
* https://bugs.launchpad.net/kicad/+bug/1831466
This commit is contained in:
Jeff Young 2019-08-21 14:27:22 +01:00
parent bfb8806682
commit cc93d82025
1 changed files with 2 additions and 2 deletions

View File

@ -277,8 +277,6 @@ int SCH_LINE_WIRE_BUS_TOOL::UnfoldBus( const TOOL_EVENT& aEvent )
wxString net; wxString net;
SCH_LINE* segment = nullptr; SCH_LINE* segment = nullptr;
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
std::string tool = aEvent.GetCommandStr().get(); std::string tool = aEvent.GetCommandStr().get();
m_frame->PushTool( tool ); m_frame->PushTool( tool );
Activate(); Activate();
@ -327,6 +325,8 @@ int SCH_LINE_WIRE_BUS_TOOL::UnfoldBus( const TOOL_EVENT& aEvent )
SCH_LINE* SCH_LINE_WIRE_BUS_TOOL::doUnfoldBus( const wxString& aNet ) SCH_LINE* SCH_LINE_WIRE_BUS_TOOL::doUnfoldBus( const wxString& aNet )
{ {
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
wxPoint pos = (wxPoint) getViewControls()->GetCursorPosition(); wxPoint pos = (wxPoint) getViewControls()->GetCursorPosition();
m_busUnfold.entry = new SCH_BUS_WIRE_ENTRY( pos, '\\' ); m_busUnfold.entry = new SCH_BUS_WIRE_ENTRY( pos, '\\' );