mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-15 12:41:32 +00:00
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:
parent
063fdd118b
commit
5d1eb92c1b
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user