]> git.lyx.org Git - features.git/commitdiff
Disable space tyes that are not supported in mathed (for these, a thinspace was inser...
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 27 Aug 2011 10:58:48 +0000 (10:58 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 27 Aug 2011 10:58:48 +0000 (10:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39537 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathNest.cpp

index 0ec27507a4fc06beac765144e5148a6772f02c69..2379e4f8b11a7b79b2400df77f78bcf6b14869b5 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" || name == "visible")
+                       flag.setEnabled(false);
+               break;
+       }
+
        case LFUN_INSET_DISSOLVE:
                flag.setEnabled(!asHullInset());
                break;