From 4a5fdd4214aa470c3b9a0ec2d939c24564263ea1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 13 Sep 2022 01:40:23 +0100 Subject: [PATCH] Display crosshairs in picker tools. Fixes https://gitlab.com/kicad/code/kicad/issues/10183 (cherry picked from commit 0a5ca5b4856e34e2a2db84cfdc2b7e5108e1d7e9) --- pcbnew/tools/pcb_picker_tool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/pcb_picker_tool.cpp b/pcbnew/tools/pcb_picker_tool.cpp index 965f544e5c..f57af625cc 100644 --- a/pcbnew/tools/pcb_picker_tool.cpp +++ b/pcbnew/tools/pcb_picker_tool.cpp @@ -27,8 +27,6 @@ #include "pcb_actions.h" #include "pcb_grid_helper.h" #include -#include -#include "pcb_selection_tool.h" PCB_PICKER_TOOL::PCB_PICKER_TOOL() : @@ -57,6 +55,7 @@ int PCB_PICKER_TOOL::Main( const TOOL_EVENT& aEvent ) [&]() { frame->GetCanvas()->SetCurrentCursor( m_cursor ); + controls->ShowCursor( true ); }; // Set initial cursor @@ -168,6 +167,7 @@ int PCB_PICKER_TOOL::Main( const TOOL_EVENT& aEvent ) reset(); controls->ForceCursorPosition( false ); + controls->ShowCursor( false ); if( !tool.empty() ) frame->PopTool( tool );