From 70390b0283c217be9886e7b495e978e0f9b35cfd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 27 Aug 2011 10:58:48 +0000 Subject: [PATCH] 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 --- src/mathed/InsetMathNest.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.39.2