From 8ab36ddef749d17d45b078b10982e5e1553657cf Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sun, 15 Jun 2008 22:12:40 +0000 Subject: [PATCH] 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 --- src/mathed/InsetMathNest.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 883a7606de..8c470759d5 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -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(); -- 2.39.2