]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
status.22x
[lyx.git] / src / TextMetrics.cpp
index dd970e21dd070799ae880625a1d2cd4f89edb78e..ed819812c41fdab8f48e845801be7e8adf78a61c 100644 (file)
@@ -917,7 +917,7 @@ void TextMetrics::breakRow(Row & row, int const right_margin, pit_type const pit
        // if the row is too large, try to cut at last separator. In case
        // of success, reset indication that the row was broken abruptly.
        if (row.shortenIfNeeded(body_pos, width))
-               row.right_boundary(false);
+               row.right_boundary(!row.empty() && row.back().endpos == row.endpos());
 
        // make sure that the RTL elements are in reverse ordering
        row.reverseRTL(is_rtl);