From 943a39b1e20e27e467fb5f8fec201ee472778415 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 21 Jan 2010 16:59:39 +0000 Subject: [PATCH] always close properly undo groups git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33129 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Cursor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 542d1016b9..100855e92f 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -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 -- 2.39.2