commit 21ee98f26dce1b705283ac75b1abc254f81f600b
Author: Juergen Spitzmueller <[email protected]>
Date: Tue Sep 8 15:40:28 2026 +0200
Add comments
---
src/insets/InsetTabular.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 8d9fbe8f0c..8f8a16ccb3 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -6891,6 +6891,9 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest
const & cmd,
case LFUN_FONT_NO_SPELLCHECK:
case LFUN_TEXTSTYLE_UPDATE: {
if (cur.selIsMultiCell()) {
+ // We need to check all cells in the selection
+ // and enable the function only if it is actually
+ // enabled in all cells.
row_type rs, re;
col_type cs, ce;
getSelection(cur, rs, re, cs, ce);
@@ -6902,6 +6905,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest
const & cmd,
}
}
}
+ // no cells disables the function, so enable it.
status.setEnabled(true);
return true;
} else
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs