diff --git a/src/frontends/qt4/GuiWorkArea.C b/src/frontends/qt4/GuiWorkArea.C index 65453d75d0..7ec53683f4 100644 --- a/src/frontends/qt4/GuiWorkArea.C +++ b/src/frontends/qt4/GuiWorkArea.C @@ -430,7 +430,6 @@ void GuiWorkArea::mouseDoubleClickEvent(QMouseEvent * e) void GuiWorkArea::resizeEvent(QResizeEvent * ev) { - verticalScrollBar()->setPageStep(viewport()->height()); QAbstractScrollArea::resizeEvent(ev); need_resize_ = true; } @@ -498,6 +497,7 @@ void GuiWorkArea::paintEvent(QPaintEvent * ev) */ if (need_resize_) { + verticalScrollBar()->setPageStep(viewport()->height()); screen_ = QPixmap(viewport()->width(), viewport()->height()); resizeBufferView(); updateScreen();