mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
When ignoring an update, request one for later
If we were not ready to paint the screen, this does not mean that we should give up on repainting, just potpone it. I thought that it was bad to call update() in the paint event, but I cannot find reference to this anymore and everything seems to work as intended. Fixes part of bug #11323. (cherry picked from commit38f09c177b
) (cherry picked from commit2617a4dd50
)
This commit is contained in:
parent
ea81faa911
commit
ba3ff646db
@ -1268,6 +1268,8 @@ void GuiWorkArea::paintEvent(QPaintEvent * ev)
|
|||||||
// backing store has to be copied to screen (this is a no-op
|
// backing store has to be copied to screen (this is a no-op
|
||||||
// except on macOS).
|
// except on macOS).
|
||||||
d->updateScreen(ev->rect());
|
d->updateScreen(ev->rect());
|
||||||
|
// Ignore this paint event, but request a new one for later.
|
||||||
|
viewport()->update(ev->rect());
|
||||||
ev->accept();
|
ev->accept();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -155,6 +155,8 @@ What's new
|
|||||||
|
|
||||||
- Fix display of raster graphics with viewports (bug 11180).
|
- Fix display of raster graphics with viewports (bug 11180).
|
||||||
|
|
||||||
|
- Fix some missing screen updates (bug 11323, regression in 2.3.1).
|
||||||
|
|
||||||
|
|
||||||
* INTERNALS
|
* INTERNALS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user