commit bd88740b065d312c2834701b410222e40009f623
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Thu Aug 31 14:52:30 2017 +0200

    When a row is shortened, reset its flushed() attribute.
    
    Fixes bug #10699.
    
    (cherry picked from commit 59e2c40564f441044d38f2082b8a038cc093c932)
---
 src/TextMetrics.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp
index f94acca..e3a1f26 100644
--- a/src/TextMetrics.cpp
+++ b/src/TextMetrics.cpp
@@ -966,7 +966,8 @@ bool TextMetrics::breakRow(Row & row, int const 
right_margin) const
        int const next_width = max_width_ - leftMargin(row.pit(), row.endpos())
                - rightMargin(row.pit());
 
-       row.shortenIfNeeded(body_pos, width, next_width);
+       if (row.shortenIfNeeded(body_pos, width, next_width))
+               row.flushed(false);
        row.right_boundary(!row.empty() && row.endpos() < end
                           && row.back().endpos == row.endpos());
        // Last row in paragraph is flushed

Reply via email to