From: Juergen Spitzmueller Date: Thu, 4 Apr 2019 06:24:25 +0000 (+0200) Subject: Disable TABLUAR_STYLE_INSERT with TABULAR_INSERT X-Git-Tag: lyx-2.4.0dev-acb2ca7b~2243 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=97d3b73e9ac98730abe6ccb21a307a17ce42cdf1;p=lyx.git Disable TABLUAR_STYLE_INSERT with TABULAR_INSERT --- diff --git a/src/insets/InsetScript.cpp b/src/insets/InsetScript.cpp index c7bdd4279d..f87f6c4747 100644 --- a/src/insets/InsetScript.cpp +++ b/src/insets/InsetScript.cpp @@ -281,6 +281,7 @@ bool InsetScript::getStatus(Cursor & cur, FuncRequest const & cmd, case LFUN_PREVIEW_INSERT: case LFUN_QUOTE_INSERT: case LFUN_TABULAR_INSERT: + case LFUN_TABULAR_STYLE_INSERT: case LFUN_WRAP_INSERT: flag.setEnabled(false); return true; diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index d3976fea4a..9f2ef5efa9 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -5572,6 +5572,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd, // disable these with multiple cells selected case LFUN_INSET_INSERT: case LFUN_TABULAR_INSERT: + case LFUN_TABULAR_STYLE_INSERT: case LFUN_FLEX_INSERT: case LFUN_FLOAT_INSERT: case LFUN_FLOAT_WIDE_INSERT: