Don't bother bliking the cursor if it isn't on the screen.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33813 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-20 15:11:25 +00:00
parent 57aa866a1c
commit 8a690ea050

View File

@ -396,6 +396,13 @@ void GuiWorkArea::stopBlinkingCursor()
void GuiWorkArea::startBlinkingCursor()
{
Point p;
int h = 0;
buffer_view_->cursorPosAndHeight(p, h);
// Don't start blinking if the cursor isn't on screen.
if (!buffer_view_->cursorInView(p, h))
return;
showCursor();
//we're not supposed to cache this value.