Display crosshairs in picker tools.

Fixes https://gitlab.com/kicad/code/kicad/issues/10183

(cherry picked from commit 0a5ca5b485)
This commit is contained in:
Jeff Young 2022-09-13 01:40:23 +01:00
parent fe7ed364b6
commit 4a5fdd4214
1 changed files with 2 additions and 2 deletions

View File

@ -27,8 +27,6 @@
#include "pcb_actions.h"
#include "pcb_grid_helper.h"
#include <view/view_controls.h>
#include <tool/tool_manager.h>
#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 );