Disable append-column with gathered

Fixes #11812

(cherry picked from commit ed137ee435)
This commit is contained in:
Juergen Spitzmueller 2020-04-04 09:27:24 +02:00
parent ee7c607b5e
commit 3d0dd488c3
2 changed files with 9 additions and 0 deletions

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

View File

@ -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