From 48688b50744e56d33e44c519901552e4463bb4f9 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 7 Sep 2018 10:31:05 +0100 Subject: [PATCH] Hook up "always show cursor" preference. --- eeschema/controle.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/eeschema/controle.cpp b/eeschema/controle.cpp index ba32f6a79b..d69bf1719c 100644 --- a/eeschema/controle.cpp +++ b/eeschema/controle.cpp @@ -253,8 +253,13 @@ bool SCH_EDIT_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KE bool keyHandled = GeneralControlKeyMovement( aHotKey, &pos, snapToGrid ); // Update cursor position. - SetCrossHairPosition( pos, snapToGrid ); - RefreshCrossHair( oldpos, aPosition, aDC ); + if( GetToolId() == ID_NO_TOOL_SELECTED ) + m_canvas->CrossHairOff( aDC ); + else + { + SetCrossHairPosition( pos, snapToGrid ); + RefreshCrossHair( oldpos, aPosition, aDC ); + } if( aHotKey ) {