Fixup 38f09c177b: limit to paint rectangle

This commit is contained in:
Jean-Marc Lasgouttes 2018-10-04 14:27:43 +02:00
parent 38f09c177b
commit 2617a4dd50

View File

@ -1272,7 +1272,7 @@ void GuiWorkArea::paintEvent(QPaintEvent * ev)
// except on macOS).
d->updateScreen(ev->rect());
// Ignore this paint event, but request a new one for later.
viewport()->update();
viewport()->update(ev->rect());
ev->accept();
return;
}