Disable append-column with gathered

Fixes #11812
This commit is contained in:
Juergen Spitzmueller 2020-04-04 09:27:24 +02:00
parent c8ebd2117c
commit ed137ee435

View File

@ -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'")),