From c7bca3b1431e50e8f01e4d4f952b38dee86ec0fd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 21 Aug 2015 15:20:02 +0100 Subject: Fix bug in previous commit --- pango/pango-layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 3f3f98f0..a9241c1f 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -5242,7 +5242,7 @@ justify_clusters (PangoLayoutLine *line, int leftmost, rightmost; int adjustment, space_left, space_right; - adjustment = ((gaps_so_far * total_remaining_width) - total_gaps/2) / total_gaps - added_so_far; + adjustment = ((gaps_so_far * total_remaining_width) - total_remaining_width/2) / total_gaps - added_so_far; if (is_hinted) adjustment = PANGO_UNITS_ROUND (adjustment); /* distribute to before/after */ -- cgit v1.2.1