Handle don't-always-display-cursor setting correctly.
Fixes: lp:1798448 * https://bugs.launchpad.net/kicad/+bug/1798448
This commit is contained in:
parent
c694c2e534
commit
7d02c11880
|
@ -68,6 +68,11 @@ bool LIB_EDIT_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KE
|
||||||
wxPoint pos = aPosition;
|
wxPoint pos = aPosition;
|
||||||
bool keyHandled = GeneralControlKeyMovement( aHotKey, &pos, snapToGrid );
|
bool keyHandled = GeneralControlKeyMovement( aHotKey, &pos, snapToGrid );
|
||||||
|
|
||||||
|
if( GetToolId() == ID_NO_TOOL_SELECTED )
|
||||||
|
m_canvas->CrossHairOff( aDC );
|
||||||
|
else
|
||||||
|
m_canvas->CrossHairOn( aDC );
|
||||||
|
|
||||||
SetCrossHairPosition( pos, snapToGrid );
|
SetCrossHairPosition( pos, snapToGrid );
|
||||||
|
|
||||||
if( m_canvas->IsMouseCaptured() )
|
if( m_canvas->IsMouseCaptured() )
|
||||||
|
|
Loading…
Reference in New Issue