Let LFUN_MATH_SPACE use various spaces we support.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25266 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-06-15 22:12:40 +00:00
parent f7b5e343e3
commit 8ab36ddef7

View File

@ -1028,11 +1028,18 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd)
}
case LFUN_SPACE_INSERT:
case LFUN_MATH_SPACE:
cur.recordUndoSelection();
cur.insert(MathAtom(new InsetMathSpace(from_ascii(","))));
break;
case LFUN_MATH_SPACE:
cur.recordUndoSelection();
if (cmd.argument().empty())
cur.insert(MathAtom(new InsetMathSpace(from_ascii(","))));
else
cur.insert(MathAtom(new InsetMathSpace(cmd.argument())));
break;
case LFUN_ERT_INSERT:
// interpret this as if a backslash was typed
cur.recordUndo();