]> git.lyx.org Git - features.git/commitdiff
Fix bug #7125: Insertion of a math macro cannot be undone.
authorVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 Jan 2011 20:39:14 +0000 (20:39 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Mon, 3 Jan 2011 20:39:14 +0000 (20:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37088 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index dc67626396017e6dc4ada1eab4019e882f6d2876..c6f3eb70b93f1a4254e89fb2cb828cb2c31667b8 100644 (file)
@@ -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<int>(s1);