]> git.lyx.org Git - features.git/commitdiff
Backport r39537:
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 6 Sep 2011 17:37:49 +0000 (17:37 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 6 Sep 2011 17:37:49 +0000 (17:37 +0000)
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

src/mathed/InsetMathNest.cpp
status.20x

index 0ec27507a4fc06beac765144e5148a6772f02c69..287cc8d9d3900f3e16e0b66abe9fbb714dcbe71e 100644 (file)
@@ -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;
index 5cd791c2dd8335cbf8e7ceb4f8bb83784b4758d4..c3f0e57c3842225537f1dfb1eaafd332e347cd7b 100644 (file)
@@ -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).