From d56089e1f1ee57dcc3606ffd3238e0404f693cae 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 --- src/mathed/InsetMathSplit.cpp | 6 ++++++ 1 file changed, 6 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'")), -- 2.39.5