]> git.lyx.org Git - features.git/commitdiff
Fix bug 3150
authorEnrico Forestieri <forenr@lyx.org>
Thu, 8 Feb 2007 16:41:06 +0000 (16:41 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 8 Feb 2007 16:41:06 +0000 (16:41 +0000)
* 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

index 73a2d0d405d34c07cef106e60d82f5ee3f48d26c..dbfe010f140de3e28378b4abd06aadfd646877e3 100644 (file)
@@ -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);