From: Jürgen Spitzmüller Date: Tue, 6 Sep 2011 17:37:49 +0000 (+0000) Subject: Backport r39537: X-Git-Tag: 2.0.2~226 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0365a2208cb3025247f8dc6b1272bedb205329a8;p=features.git Backport r39537: Author: spitz Date: Sat Aug 27 12:58:48 2011 New Revision: 39537 URL: http://www.lyx.org/trac/changeset/39537 Log: Disable space types that are not supported in mathed (for these, a thinspace was inserted as a fallback). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39619 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 0ec27507a4..287cc8d9d3 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -1418,6 +1418,13 @@ bool InsetMathNest::getStatus(Cursor & cur, FuncRequest const & cmd, flag.setEnabled(false); break; + case LFUN_SPACE_INSERT: { + docstring const & name = cmd.argument(); + if (name == "protected" || name == "normal") + flag.setEnabled(false); + break; + } + case LFUN_INSET_DISSOLVE: flag.setEnabled(!asHullInset()); break; diff --git a/status.20x b/status.20x index 5cd791c2dd..c3f0e57c38 100644 --- a/status.20x +++ b/status.20x @@ -72,7 +72,10 @@ What's new - Repair broken outliner display for broken references (bug 7708). -- Fix Horizontal Space dialog when opened from within math (bug 7746). +- Fix Horizontal Space dialog when issued from within math (bug 7746). + +- Disable interword and protected space lfuns in math, since these spaces + are not yet supported. - Mark buffer dirty when a label is changed, so the file can be saved and the change can be reverted (bug 7655).