commit 08b6c4bf415faed9eac4da81cc62f088994e7ca2
Author: Juergen Spitzmueller <[email protected]>
Date:   Sun Sep 20 10:55:10 2026 +0200

    Fix disabling of LFUN_FONT_* lfuns with multi-cell table selection
---
 src/insets/InsetTabular.cpp | 29 +++++++++++++++++++++++++++++
 status.25x                  |  2 ++
 2 files changed, 31 insertions(+)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 86c5273943..124c389e19 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -6877,6 +6877,35 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest 
const & cmd,
                return cell(cur.idx())->getStatus(cur, cmd, status);
        }
 
+       case LFUN_FONT_FRAK:
+       case LFUN_FONT_SIZE:
+       case LFUN_FONT_STATE:
+       case LFUN_FONT_UNDERLINE:
+       case LFUN_FONT_STRIKEOUT:
+       case LFUN_FONT_CROSSOUT:
+       case LFUN_FONT_UNDERUNDERLINE:
+       case LFUN_FONT_UNDERWAVE:
+       case LFUN_FONT_NO_SPELLCHECK:
+       case LFUN_TEXTSTYLE_UPDATE: {
+               if (cur.selIsMultiCell()) {
+                       row_type rs, re;
+                       col_type cs, ce;
+                       getSelection(cur, rs, re, cs, ce);
+                       for (row_type r = rs; r <= re; ++r) {
+                               for (col_type c = cs; c <= ce; ++c) {
+                                       if (!tabular.cellInset(r, 
c)->getStatus(cur, cmd, status)) {
+                                               status.setEnabled(false);
+                                               return true;
+                                       }
+                               }
+                       }
+                       status.setEnabled(true);
+                       return true;
+               } else
+                       return cell(cur.idx())->getStatus(cur, cmd, status);
+               break;
+       }
+
        case LFUN_PARAGRAPH_BREAK:
        case LFUN_NEWLINE_INSERT:
                return cell(cur.idx())->getStatus(cur, cmd, status);
diff --git a/status.25x b/status.25x
index 8d3669193b..7fd5294222 100644
--- a/status.25x
+++ b/status.25x
@@ -48,6 +48,8 @@ What's new
 
 - Restore "Paste as PDF" on macOS which used to work in 2.4.
 
+- Fix disabling of LFUN_FONT_* lfuns with multi-cell table selection.
+
 
 * INTERNALS
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to