From: Vincent van Ravesteijn Date: Thu, 31 Dec 2009 13:46:10 +0000 (+0000) Subject: Fix bug #6332: Do not paint the cursor after a resize event when it should be invisible. X-Git-Tag: 2.0.0~4666 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8e95585bbd3f967c9969aa2ebbf73f025f86dcb2;p=lyx.git 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 --- 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());