]> git.lyx.org Git - features.git/commitdiff
When a row is shortened, reset its flushed() attribute.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 31 Aug 2017 12:52:30 +0000 (14:52 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 31 Aug 2017 12:52:30 +0000 (14:52 +0200)
Fixes bug #10699.

src/TextMetrics.cpp

index f94accae67176f898c3fcce7f63ab485638f5909..e3a1f26092ff723225a49eb798d714ee93a17ef7 100644 (file)
@@ -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