Author: vfr
Date: Mon Jan 3 21:39:14 2011
New Revision: 37088
URL: http://www.lyx.org/trac/changeset/37088
Log:
Fix bug #7125: Insertion of a math macro cannot be undone.
Modified:
lyx-devel/trunk/src/Text3.cpp
Modified: lyx-devel/trunk/src/Text3.cpp
==============================================================================
--- lyx-devel/trunk/src/Text3.cpp Mon Jan 3 21:32:02 2011 (r37087)
+++ lyx-devel/trunk/src/Text3.cpp Mon Jan 3 21:39:14 2011 (r37088)
@@ -1754,6 +1754,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);