]> git.lyx.org Git - features.git/commitdiff
* Buffer.cpp (renameBranches): record undo.
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 11 Jul 2009 05:08:44 +0000 (05:08 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 11 Jul 2009 05:08:44 +0000 (05:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30459 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 53ade6faf3683655839783effc631bc4f9a0f8f3..1f1db9e4465b5aab840644fe2148619c1e0f2ef0 100644 (file)
@@ -2438,6 +2438,7 @@ void Buffer::renameBranches(docstring const & oldname, docstring const & newname
                                // get buffer of external file
                                InsetBranch & br =
                                        static_cast<InsetBranch &>(*iit->inset);
+                               undo().recordUndo(it);
                                if (br.branch() == oldname)
                                        br.rename(newname);
                                continue;