]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #6332: Do not paint the cursor after a resize event when it should be invisible.
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 31 Dec 2009 13:46:10 +0000 (13:46 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 31 Dec 2009 13:46:10 +0000 (13:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32687 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index e567b9e2ccc6417de613c51ac814de8c61471dfb..0709dce5a486f417afe62812f1d053275ed413ca 100644 (file)
@@ -972,8 +972,10 @@ void GuiWorkArea::paintEvent(QPaintEvent * ev)
        if (need_resize_) {
                screen_ = QPixmap(viewport()->width(), viewport()->height());
                resizeBufferView();
-               hideCursor();
-               showCursor();
+               if (cursor_visible_) {
+                       hideCursor();
+                       showCursor();
+               }
        }
 
        QPainter pain(viewport());