From 3c714ab7cd436c07f6276cac1d3f3dcfffa7cc26 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 4 Apr 2019 08:24:25 +0200 Subject: [PATCH] Disable TABLUAR_STYLE_INSERT with TABULAR_INSERT --- src/insets/InsetScript.cpp | 1 + src/insets/InsetTabular.cpp | 1 + 2 files changed, 2 insertions(+) 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: -- 2.39.5