From 41ebe5e7522a22f708dcd972b79189a722ec4153 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Wed, 14 Nov 2007 17:59:58 +0000 Subject: [PATCH] * 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 --- src/mathed/MathMacroTemplate.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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_) { -- 2.39.2