From: Juergen Spitzmueller Date: Sat, 4 Apr 2020 07:27:24 +0000 (+0200) Subject: Disable append-column with gathered X-Git-Tag: lyx-2.4.0dev-acb2ca7b~1050 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ed137ee435ea2e9e1d38b6095e8ce51c0c48204a;p=features.git Disable append-column with gathered Fixes #11812 --- 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'")),