Display crosshairs in picker tools.

Fixes https://gitlab.com/kicad/code/kicad/issues/10183
This commit is contained in:
Jeff Young 2022-09-13 01:40:23 +01:00
parent 8ae0ddf09d
commit 0a5ca5b485
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
@ -172,6 +171,7 @@ int PCB_PICKER_TOOL::Main( const TOOL_EVENT& aEvent )
reset();
controls->ForceCursorPosition( false );
controls->ShowCursor( false );
if( !tool.empty() )
frame->PopTool( tool );