From: Stefan Schimanski Date: Wed, 14 Nov 2007 17:59:58 +0000 (+0000) Subject: * added forgotton undo call for LFUN_MATH_MACRO_REMOVE_OPTIONAL_PARAM X-Git-Tag: 1.6.10~7346 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=41ebe5e7522a22f708dcd972b79189a722ec4153;p=features.git * added forgotton undo call for LFUN_MATH_MACRO_REMOVE_OPTIONAL_PARAM git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21614 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp index bc9e3dbf12..26d10509c4 100644 --- a/src/mathed/MathMacroTemplate.cpp +++ b/src/mathed/MathMacroTemplate.cpp @@ -565,9 +565,10 @@ void MathMacroTemplate::doDispatch(Cursor & cur, FuncRequest & cmd) break; case LFUN_MATH_MACRO_REMOVE_OPTIONAL_PARAM: - if (optionals_ > 0) + if (optionals_ > 0) { + cur.recordUndoFullDocument(); removeParameter(cur, optionals_ - 1); - break; + } break; case LFUN_MATH_MACRO_ADD_GREEDY_OPTIONAL_PARAM: if (numargs_ == optionals_) {