Safeguard: don't do things that could trigger a painting inside the resizeEvent().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16544 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-01-06 09:36:40 +00:00
parent 063fdd118b
commit 5d1eb92c1b

View File

@ -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();