fix bug 818. Please report any problems with pixel dirt from the cursor to me

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7089 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-06-03 01:34:34 +00:00
parent 96a07595c3
commit fb5ff81c81
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-06-03 John Levon <levon@movementarian.org>
* qscreen.C: paint before saving the cursor pixmap
(bug 818)
2003-06-03 John Levon <levon@movementarian.org>
* QTabular.C: fix a crash

View File

@ -136,6 +136,11 @@ void QScreen::showCursor(int x, int y, int h, Cursor_Shape shape)
if (!qApp->focusWidget())
return;
// We could have pending paints. If we don't process them
// before, we end up with pixel dirt when the cursor is
// in insets
qApp->processEvents();
Painter & pain(owner_.getPainter());
pain.start();
pain.line(x, y, x, y + h - 1, LColor::cursor);