From 8a690ea050945f728fd566326f0918895fa5e033 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 20 Mar 2010 15:11:25 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiWorkArea.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 14c972bbc0..c418184ab5 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -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.