Set margins correctly for empty rows

Calling breakRow ensures that everything is set correctly.
This commit is contained in:
Jean-Marc Lasgouttes 2016-03-05 13:50:28 +01:00
parent fae1cd6af0
commit b4d85944a6

View File

@ -478,7 +478,7 @@ bool TextMetrics::redoParagraph(pit_type const pit)
pm.rows().push_back(Row());
Row & row = pm.rows()[row_index];
row.pos(first);
row.endpos(first);
breakRow(row, right_margin, pit);
setRowHeight(row, pit);
row.setChanged(false);
int const max_row_width = max(dim_.wid, row.width());