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
This commit is contained in:
Seth Hillbrand 2021-10-05 20:26:59 -07:00
parent 854472d550
commit bb5c58b3cf
1 changed files with 2 additions and 4 deletions

View File

@ -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
{