Author: vfr
Date: Tue Jan  4 09:58:03 2011
New Revision: 37099
URL: http://www.lyx.org/trac/changeset/37099

Log:
branch: Fix bug #7125: Insertion of a math macro cannot be undone.

see r37088.

Modified:
   lyx-devel/branches/BRANCH_1_6_X/src/Text3.cpp

Modified: lyx-devel/branches/BRANCH_1_6_X/src/Text3.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_1_6_X/src/Text3.cpp       Tue Jan  4 09:19:45 
2011        (r37098)
+++ lyx-devel/branches/BRANCH_1_6_X/src/Text3.cpp       Tue Jan  4 09:58:03 
2011        (r37099)
@@ -1671,6 +1671,7 @@
                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);

Reply via email to