commit 4d6706e24ff0af14b158c095b840e1f6da123862
Author: Juergen Spitzmueller <[email protected]>
Date:   Wed Aug 27 18:02:55 2025 +0200

    Assure index does not exceed bounds (#13217)
---
 src/insets/InsetTabular.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 89ca6ac943..3bebef5bf2 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -3071,7 +3071,7 @@ void Tabular::TeXBottomHLine(otexstream & os, row_type 
row, list<col_type> const
                                                ++offset;
                                // If the two iterators differ, we are in bidi 
with swapped columns
                                col_type firstcol = (*it1 == *it2) ? c + 1 + 
offset : columns.size() - c + offset;
-                               while (isPartOfMultiColumn(row, c))
+                               while (isPartOfMultiColumn(row, c) && c < 
columns.size() - 1)
                                        ++c;
                                string trim;
                                if (bottomltrims[c])
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to