always close properly undo groups

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33129 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2010-01-21 16:59:39 +00:00
parent 4ebc0c071e
commit 943a39b1e2

View File

@ -336,8 +336,10 @@ void Cursor::dispatch(FuncRequest const & cmd0)
LYXERR(Debug::DEBUG, "Cursor::dispatch: (AtPoint) cmd: "
<< cmd0 << endl << *this);
nextInset()->dispatch(*this, tmpcmd);
if (result().dispatched())
if (result().dispatched()) {
buffer()->undo().endUndoGroup();
return;
}
}
// store some values to be used inside of the handlers