From a9f29e6f6c3aa2b3b747b49d264bb71b44b16c66 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Tue, 23 Dec 2008 17:25:11 +0000 Subject: [PATCH] make Pavel happy git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27971 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LyXAction.cpp | 10 +++++++--- src/mathed/InsetMathNest.cpp | 7 +++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index 98c44f5822..3c7082c341 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -1485,10 +1485,14 @@ void LyXAction::init() * \var lyx::FuncCode lyx::LFUN_MATH_SPACE * \li Action: Inserts space into math expression. * \li Notion: Use spacebar after entering this space to change type of space. - * \li Syntax: math-space [] - * \li Params: : negative spaces: !|negmedspace|negthickspace \n - positive spaces: ,|:|;|quad|qquad \n + * \li Syntax: math-space [] [] + * \li Params: : negative spaces: !|negthinspace|negmedspace|negthickspace \n + positive spaces: ,|thinspace|:|medspace|;|thickspace|enskip|quad|qquad \n + custom space: hspace \n "," used by default. + Note that ! is equivalent to negthinspace, , = thinspace, + : = medspace, and ; = thickspace. + : length for custom spaces (hspace) * \li Origin: Andre, 25 Jul 2001; sanda, 16 Jun 2008 * \endvar */ diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 11531f6614..837b6234e1 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -1061,8 +1061,11 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd) cur.recordUndoSelection(); if (cmd.argument().empty()) cur.insert(MathAtom(new InsetMathSpace)); - else - cur.insert(MathAtom(new InsetMathSpace(to_utf8(cmd.argument()), ""))); + else { + string const name = cmd.getArg(0); + string const len = cmd.getArg(1); + cur.insert(MathAtom(new InsetMathSpace(name, len))); + } break; case LFUN_ERT_INSERT: -- 2.39.5