commit 9a4a6ca079f24b0ecdd7e33e1b42a5360980cca3
Author: Juergen Spitzmueller <[email protected]>
Date: Fri Oct 1 12:42:06 2021 +0200
Fix \cline calculation when last column has decimal alignment
---
src/insets/InsetTabular.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 15f1ca7..765388a 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -2605,7 +2605,7 @@ void Tabular::TeXTopHLine(otexstream & os, row_type row,
list<col_type> columns,
break;
}
- for (col_type j = cstart ; j < c ; ++j)
+ for (col_type j = cstart ; j <= c ; ++j)
if (column_info[j].alignment ==
LYX_ALIGN_DECIMAL)
++offset;
col_type lastcol = (*it1 == *it2) ? c + 1 +
offset : columns.size() - c + offset;
@@ -2741,7 +2741,7 @@ void Tabular::TeXBottomHLine(otexstream & os, row_type
row, list<col_type> colum
break;
}
- for (col_type j = cstart ; j < c ; ++j)
+ for (col_type j = cstart ; j <= c ; ++j)
if (column_info[j].alignment ==
LYX_ALIGN_DECIMAL)
++offset;
col_type lastcol = (*it1 == *it2) ? c + 1 +
offset : columns.size() - c + offset;
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs