From 3d0dd488c3b2ab6426431b840624d5721ac32105 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 4 Apr 2020 09:27:24 +0200 Subject: [PATCH] Disable append-column with gathered Fixes #11812 (cherry picked from commit ed137ee435ea2e9e1d38b6095e8ce51c0c48204a) --- src/mathed/InsetMathSplit.cpp | 6 ++++++ status.23x | 3 +++ 2 files changed, 9 insertions(+) diff --git a/src/mathed/InsetMathSplit.cpp b/src/mathed/InsetMathSplit.cpp index ebc8162dd9..31314b3f84 100644 --- a/src/mathed/InsetMathSplit.cpp +++ b/src/mathed/InsetMathSplit.cpp @@ -116,6 +116,12 @@ bool InsetMathSplit::getStatus(Cursor & cur, FuncRequest const & cmd, switch (cmd.action()) { case LFUN_TABULAR_FEATURE: { string s = cmd.getArg(0); + if (s == "append-column" + && (name_ == "gathered" || name_ == "lgathered" || name_ == "rgathered")) { + // gathered does not support multiple columns + flag.setEnabled(false); + return true; + } if (s == "add-vline-left" || s == "add-vline-right") { flag.message(bformat( from_utf8(N_("Can't add vertical grid lines in '%1$s'")), diff --git a/status.23x b/status.23x index 050d93bdc1..59b3f06eb6 100644 --- a/status.23x +++ b/status.23x @@ -88,6 +88,9 @@ What's new - Avoid bleeding of inset background outside of inset (bug 11786). +- Disallow adding columns with gathered environment as this is not + supported (bug 11812). + * INTERNALS