* Buffer.cpp (renameBranches): record undo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30459 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-07-11 05:08:44 +00:00
parent 4a7bb9541f
commit cfdda3ad08

View 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;