From a894faa25e463efcd6f8328056b454c7309f7d3c Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 8 Feb 2007 16:41:06 +0000 Subject: [PATCH] Fix bug 3150 * src/frontends/qt4/GuiWorkArea.C (GuiWorkArea::GuiWorkArea): initialize pixmap. (GuiWorkArea::doGreyOut): remove unneeded setVerticalScrollBarPolicy. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17112 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiWorkArea.C | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiWorkArea.C b/src/frontends/qt4/GuiWorkArea.C index 73a2d0d405..dbfe010f14 100644 --- a/src/frontends/qt4/GuiWorkArea.C +++ b/src/frontends/qt4/GuiWorkArea.C @@ -161,6 +161,7 @@ SyntheticMouseEvent::SyntheticMouseEvent() GuiWorkArea::GuiWorkArea(int w, int h, int id, LyXView & lyx_view) : WorkArea(id, lyx_view), need_resize_(false), schedule_redraw_(false) { + screen_ = QPixmap(viewport()->width(), viewport()->height()); cursor_ = new frontend::CursorWidget(); cursor_->hide(); @@ -446,8 +447,6 @@ void GuiWorkArea::update(int x, int y, int w, int h) void GuiWorkArea::doGreyOut(QLPainter & pain) { - setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); - pain.fillRectangle(0, 0, width(), height(), LColor::bottomarea); -- 2.39.5