From 8e95585bbd3f967c9969aa2ebbf73f025f86dcb2 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Thu, 31 Dec 2009 13:46:10 +0000 Subject: [PATCH] Fix bug #6332: Do not paint the cursor after a resize event when it should be invisible. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32687 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiWorkArea.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index e567b9e2cc..0709dce5a4 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -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()); -- 2.39.5