]> git.lyx.org Git - features.git/commitdiff
Don't bother bliking the cursor if it isn't on the screen.
authorRichard Heck <rgheck@comcast.net>
Sat, 20 Mar 2010 15:11:25 +0000 (15:11 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 20 Mar 2010 15:11:25 +0000 (15:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33813 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index 14c972bbc0b71fca6804434301396fb5b70728da..c418184ab55f1049982b441410ab804d89d430d7 100644 (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.