]> 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>
Wed, 29 Nov 2017 13:46:15 +0000 (14:46 +0100)
commitcc7364dfc50c399e99158fd9efe2f3eb0e6f4570
treefbfb41c6a0c63861e6d7b6916cf058628cd86def
parent6df9cbef95de6944455a2539f576c51879d72d6e
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.
src/Undo.cpp
src/Undo.h