Clear selection before adding new lines in immediate mode

Fixes https://gitlab.com/kicad/code/kicad/-/issues/4266
This commit is contained in:
Jon Evans 2020-10-13 19:04:53 -04:00
parent 505d764f25
commit d1bdfb7253
1 changed files with 1 additions and 1 deletions

View File

@ -283,6 +283,7 @@ int SCH_LINE_WIRE_BUS_TOOL::DrawSegments( const TOOL_EVENT& aEvent )
std::string tool = aEvent.GetCommandStr().get();
m_frame->PushTool( tool );
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
if( aEvent.HasPosition() )
{
@ -466,7 +467,6 @@ int SCH_LINE_WIRE_BUS_TOOL::doDrawSegments( const std::string& aTool, int aType,
KIGFX::VIEW_CONTROLS* controls = getViewControls();
m_toolMgr->RunAction( EE_ACTIONS::clearSelection, true );
controls->ShowCursor( true );