From 996b707a6f6ca666dc0109f2941ce75bb7abc839 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Mon, 3 Jan 2011 20:39:14 +0000 Subject: [PATCH] Fix bug #7125: Insertion of a math macro cannot be undone. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37088 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Text3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Text3.cpp b/src/Text3.cpp index dc67626396..c6f3eb70b9 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1754,6 +1754,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) if (cmd.argument().empty()) cur.errorMessage(from_utf8(N_("Missing argument"))); else { + cur.recordUndo(); string s = to_utf8(cmd.argument()); string const s1 = token(s, ' ', 1); int const nargs = s1.empty() ? 0 : convert(s1); -- 2.39.5