commit 49190108019ba5a2b12125298d79d96277f60e6b
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Sep 8 18:43:43 2026 +0200

    Fix case when cellvarwidth environment was closed were it was never opened
    
    (cherry picked from commit 5f6719b7e99afde5719c573b0d65cfefa96618e4)
---
 src/insets/InsetTabular.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 033e5c6dca..c283bd10bc 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -3362,8 +3362,8 @@ void Tabular::TeXCellPostamble(otexstream & os, idx_type 
cell,
        else if (getUsebox(cell) == BOX_MINIPAGE)
                os << breakln << "\\end{minipage}";
        else if (getUsebox(cell) == BOX_VARWIDTH
-                && (getRotateCell(cell) != 0 || getAlignment(cell) != 
LYX_ALIGN_LEFT
-                    || getVAlignment(cell) != LYX_VALIGN_TOP || 
hasNewlines(cell)))
+                && (getRotateCell(cell) != 0 || getAlignment(cell, 
!isMultiColumn(cell)) != LYX_ALIGN_LEFT
+                    || getVAlignment(cell, !isMultiColumn(cell)) != 
LYX_VALIGN_TOP || hasNewlines(cell)))
                os << breakln << "\\end{cellvarwidth}";
        if (getRotateCell(cell) != 0)
                os << breakln << "\\end{turn}";
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to