]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Avoid row breaking at inconvenient places.
[lyx.git] / src / TextMetrics.cpp
index 51f73fd44ab727465619ff6548beb114ca3d45db..eb99de066b5f24beb60f8adf77fe3ef1692731ce 100644 (file)
@@ -1150,7 +1150,7 @@ RowList TextMetrics::breakParagraph(Row const & bigrow) const
                // pile, or the place when we were in main row
                Row::Element elt = *fcit;
                Row::Elements tail;
-               elt.splitAt(width - rows.back().width(), next_width, false, tail);
+               elt.splitAt(width - rows.back().width(), next_width, Row::FIT, tail);
                Row & rb = rows.back();
                if (elt.type == Row::MARGINSPACE)
                        elt.dim.wid = max(elt.dim.wid, leftMargin(bigrow.pit()) - rb.width());