* BufferView.cpp:

- record undo for LFUN_NEXT_INSET_MODIFY.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27891 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-12-16 09:04:27 +00:00
parent 80044635f0
commit c65ed50ced

View File

@ -1399,11 +1399,15 @@ bool BufferView::dispatch(FuncRequest const & cmd)
// if there is an inset at cursor, see whether it
// can be modified.
Inset * inset = cur.nextInset();
if (inset)
if (inset) {
cur.recordUndo();
inset->dispatch(cur, tmpcmd);
}
// if it did not work, try the underlying inset.
if (!inset || !cur.result().dispatched())
if (!inset || !cur.result().dispatched()) {
cur.recordUndo();
cur.dispatch(tmpcmd);
}
if (!cur.result().dispatched())
// It did not work too; no action needed.