]> 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>
Thu, 31 May 2018 21:26:17 +0000 (23:26 +0200)
commitc7496a11b2f0bd714b6c2ee0f7189ff420e014ce
tree18d6a7b7a36faac142d49c02dcea38198ffc89a4
parentefc9720b0d5315cb4d5ab3eac4d2cbbebc392ac8
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.
src/Undo.cpp
src/Undo.h
src/frontends/qt4/GuiApplication.cpp
src/frontends/qt4/GuiWorkArea.cpp