]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Output labels (1.1, etc) with the TOC.
[lyx.git] / src / Cursor.cpp
index 542d1016b9295c3dafd28dd9d1ba9b8ee108fffa..100855e92f1349fe334cd7a49e0cfbd41bf83bce 100644 (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