From 39e33d513844b0102dac11abfa9cced4bd98bc17 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 30 Nov 2015 22:00:48 +0100 Subject: [PATCH] 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. --- src/TextMetrics.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index ee101b3987..889634adf5 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -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 -- 2.39.2