Handle don't-always-display-cursor setting correctly.

Fixes: lp:1798448
* https://bugs.launchpad.net/kicad/+bug/1798448
This commit is contained in:
Jeff Young 2018-10-24 00:31:26 +01:00
parent c694c2e534
commit 7d02c11880
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,11 @@ bool LIB_EDIT_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KE
wxPoint pos = aPosition;
bool keyHandled = GeneralControlKeyMovement( aHotKey, &pos, snapToGrid );
if( GetToolId() == ID_NO_TOOL_SELECTED )
m_canvas->CrossHairOff( aDC );
else
m_canvas->CrossHairOn( aDC );
SetCrossHairPosition( pos, snapToGrid );
if( m_canvas->IsMouseCaptured() )