From bb5c58b3cfb7009e8224037840bbe7401cd6e8ef Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 5 Oct 2021 20:26:59 -0700 Subject: [PATCH] Set default force cursor off in auto-lines Leaving the forced position on results in the auto-line linking to a pin for far longer than we intend if there are other hits in the area of the cursor Fixes https://gitlab.com/kicad/code/kicad/issues/9321 --- eeschema/tools/ee_selection_tool.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eeschema/tools/ee_selection_tool.cpp b/eeschema/tools/ee_selection_tool.cpp index 15970b48d9..91fbbb9322 100644 --- a/eeschema/tools/ee_selection_tool.cpp +++ b/eeschema/tools/ee_selection_tool.cpp @@ -617,6 +617,8 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent ) // We are checking if we should display a pencil when hovering over anchors // for "auto starting" wires when clicked + getViewControls()->ForceCursorPosition( false ); + if( CollectHits( collector, evt->Position() ) ) { narrowSelection( collector, evt->Position(), false, false ); @@ -659,10 +661,6 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent ) } } } - else - { - getViewControls()->ForceCursorPosition( false ); - } } else {