commit a63c7cc0a06d04dfebda7dddaeb3f5b548feb062
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Thu Sep 10 11:15:44 2026 +0200

    Row breaking: handle consecutive NoBreak* elements
---
 src/Row.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Row.cpp b/src/Row.cpp
index 2d674a9443..a8b1f0e612 100644
--- a/src/Row.cpp
+++ b/src/Row.cpp
@@ -734,7 +734,7 @@ Row::Elements Row::shortenIfNeeded(int const max_width, int 
const next_width)
                LATTEST(tail.empty());
        }
 
-       if (cit != beg && (cit->row_flags & NoBreakBefore
+       while (cit != beg && (cit->row_flags & NoBreakBefore
                           || (cit -1)->row_flags & NoBreakAfter)) {
                // It is not possible to separate this element from the
                // previous one. (e.g. VIRTUAL)
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to