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

see r37088.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@37099 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2011-01-04 08:58:03 +00:00
parent 0e955f719e
commit fab3cd5dfe

View File

@ -1671,6 +1671,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);