Eeschema, library viewer: fix a Kicad assert.

This commit is contained in:
jean-pierre charras 2018-10-30 15:58:08 +01:00
parent 4742c52250
commit 49c94fb928
1 changed files with 1 additions and 2 deletions

View File

@ -311,12 +311,11 @@ bool LIB_VIEW_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KE
}
wxPoint pos = aPosition;
wxPoint oldpos = GetCrossHairPosition();
GeneralControlKeyMovement( aHotKey, &pos, true );
// Update cursor position.
m_canvas->CrossHairOn( aDC );
SetCrossHairPosition( pos, true );
RefreshCrossHair( oldpos, aPosition, aDC );
if( aHotKey )
{