[LyX/2.3.x] Disable append-column with gathered
Juergen Spitzmueller
spitz at lyx.org
Sun Apr 5 14:58:09 UTC 2020
commit 3d0dd488c3b2ab6426431b840624d5721ac32105
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Sat Apr 4 09:27:24 2020 +0200
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(+), 0 deletions(-)
diff --git a/src/mathed/InsetMathSplit.cpp b/src/mathed/InsetMathSplit.cpp
index ebc8162..31314b3 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 050d93b..59b3f06 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
More information about the lyx-cvs
mailing list