From: Jürgen Spitzmüller Date: Sat, 27 Aug 2011 10:58:48 +0000 (+0000) Subject: Disable space tyes that are not supported in mathed (for these, a thinspace was inser... X-Git-Tag: 2.1.0beta1~2780 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=70390b0283c217be9886e7b495e978e0f9b35cfd;p=features.git Disable space tyes 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/trunk@39537 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 0ec27507a4..2379e4f8b1 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" || name == "visible") + flag.setEnabled(false); + break; + } + case LFUN_INSET_DISSOLVE: flag.setEnabled(!asHullInset()); break;