#include "CutAndPaste.h"
#include "FuncRequest.h"
#include "FuncStatus.h"
-#include "LyXFunc.h"
+#include "LyX.h"
#include "Menus.h"
#include "TocBackend.h"
TocItem const & item =
gui_view_.tocModels().currentItem(current_type_, index);
+ // Start an undo group.
+ cur.beginUndoGroup();
+
switch (cmd.action)
{
case LFUN_CHANGE_ACCEPT:
if (inset)
inset->dispatch(cur, tmpcmd);
}
+ cur.endUndoGroup();
}