]> git.lyx.org Git - lyx.git/commit
Skip paint event when in the middle of a buffer operation
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 31 May 2018 21:15:40 +0000 (23:15 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Jun 2018 12:12:32 +0000 (14:12 +0200)
commit567e94347a4d3c0f191ab731aceba2dda47f28ee
tree1858053647de3e54e6e65647d2d6ebc2456db46f
parent8abea3b7e94414ce15211590daf193c20d1d7350
Skip paint event when in the middle of a buffer operation

This is detected when an undo group is open and contains at east one
element. This means indeed that changes are in progress. Note that the
group is in general opened in GuiApplication::dispatch. The code there
is changed to ensure that the group is closed before updating the
screen.

This patch is experimental. It is expected to be replaced in master by
a more complete solution. It could in the meantime be backported to 2.3.x.

Fixes bug #11159.

(cherry picked from commit c7496a11b2f0bd714b6c2ee0f7189ff420e014ce)
(cherry picked from commit 4d0c43f9aa944649d4b5788c5de98d37c280a036)
src/Undo.cpp
src/Undo.h
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiWorkArea.cpp