Ensure we clear forced position

Fixes https://gitlab.com/kicad/code/kicad/issues/5699
This commit is contained in:
Seth Hillbrand 2020-09-18 16:09:19 -07:00
parent 5e0d79449e
commit 4fa3de2211
1 changed files with 2 additions and 1 deletions

View File

@ -279,7 +279,7 @@ int SCH_LINE_WIRE_BUS_TOOL::DrawSegments( const TOOL_EVENT& aEvent )
SCH_LAYER_ID layer = aEvent.Parameter<SCH_LAYER_ID>();
if( aEvent.HasPosition() )
getViewControls()->WarpCursor( getViewControls()->GetCursorPosition(), true );
getViewControls()->WarpCursor( aEvent.Position(), true );
std::string tool = aEvent.GetCommandStr().get();
m_frame->PushTool( tool );
@ -705,6 +705,7 @@ int SCH_LINE_WIRE_BUS_TOOL::doDrawSegments( const std::string& aTool, int aType
controls->CaptureCursor( segment != nullptr );
}
controls->ForceCursorPosition( false );
return 0;
}