]> git.lyx.org Git - features.git/commit
Better handling of multiple buffers in UndoGroupHelper
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 29 Nov 2017 13:10:33 +0000 (14:10 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Feb 2018 09:33:17 +0000 (10:33 +0100)
commit51e80361b2880a9f2e3b9d888891ffd9498713a6
tree1add41ed2a361145e4dcc2540d6f91814b526556
parent5f6c681b76b7137107be20b52fb3200883a4faa9
Better handling of multiple buffers in UndoGroupHelper

It may happen that the buffers are visited in order buffer1,
buffer2, buffer1. In this case, we want to have only one undo group
in buffer1. The solution is to replace buffer_ with a set<Buffer*>.

A use case among others is InsetLabel::updateReferences.

(cherry picked from commit cc7364dfc50c399e99158fd9efe2f3eb0e6f4570)
src/Undo.cpp
src/Undo.h