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
This commit is contained in:
Jürgen Spitzmüller 2011-08-27 10:58:48 +00:00
parent 6a3ff009db
commit 70390b0283

View 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;