commit e7ffd8d31564c08e3ccc426c898db1e9f305ebf4
Author: Juergen Spitzmueller <[email protected]>
Date:   Sun Oct 25 09:32:07 2026 +0100

    Fix border drawing with multirows (part of #12839)
---
 src/insets/InsetTabular.cpp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index a291fd036b..b6cd9c341e 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -1794,16 +1794,21 @@ bool Tabular::columnLeftLine(col_type c) const
 
        int nrows_left = 0;
        int total = 0;
+       bool multirow = false;
        for (row_type r = 0; r < nrows(); ++r) {
                idx_type const i = cellIndex(r, c);
                if (c == cellColumn(i)) {
                        ++total;
                        bool right = c > 0 && cellInfo(cellIndex(r, c - 
1)).right_line;
-                       if (cellInfo(i).left_line || right)
+                       if (cellInfo(i).left_line || right) {
+                               if (isMultiRow(i))
+                                       // multirows need the global setting 
(#12839)
+                                       multirow = true;
                                ++nrows_left;
+                       }
                }
        }
-       return 2 * nrows_left >= total;
+       return multirow || 2 * nrows_left >= total;
 }
 
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to