Author: spitz
Date: Tue Sep  6 19:37:49 2011
New Revision: 39619
URL: http://www.lyx.org/trac/changeset/39619

Log:
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).

Modified:
   lyx-devel/branches/BRANCH_2_0_X/src/mathed/InsetMathNest.cpp
   lyx-devel/branches/BRANCH_2_0_X/status.20x

Modified: lyx-devel/branches/BRANCH_2_0_X/src/mathed/InsetMathNest.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/src/mathed/InsetMathNest.cpp        Tue Sep 
 6 15:26:10 2011        (r39618)
+++ lyx-devel/branches/BRANCH_2_0_X/src/mathed/InsetMathNest.cpp        Tue Sep 
 6 19:37:49 2011        (r39619)
@@ -1418,6 +1418,13 @@
                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;

Modified: lyx-devel/branches/BRANCH_2_0_X/status.20x
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/status.20x  Tue Sep  6 15:26:10 2011        
(r39618)
+++ lyx-devel/branches/BRANCH_2_0_X/status.20x  Tue Sep  6 19:37:49 2011        
(r39619)
@@ -72,7 +72,10 @@
 
 - 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).

Reply via email to