Fix width of row when there are active hfills

It is important to make sure in computeRowMetrics that the row width
is correct at the end, because we rely on it in several places.

Fixes bug #9870.
This commit is contained in:
Jean-Marc Lasgouttes 2015-11-30 22:00:48 +01:00
parent d887b2a5dc
commit 39e33d5138

View File

@ -596,6 +596,7 @@ void TextMetrics::computeRowMetrics(pit_type const pit,
if (nh > 0) {
hfill = w / nh;
hfill_rem = w % nh;
row.dimension().wid += w;
} else if (nh == 0 && int(row.width()) < max_width_) {
// is it block, flushleft or flushright?
// set x how you need it