[pango/rewrite-line-breaking] Fix a thinko in zero_line_final_space
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/rewrite-line-breaking] Fix a thinko in zero_line_final_space
- Date: Tue, 16 Nov 2021 23:24:22 +0000 (UTC)
commit 82cea295cf3ad21260b35be2ef2aaa30325d272a
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 16 18:22:32 2021 -0500
Fix a thinko in zero_line_final_space
We must not add the width of the space back to
remaining_width, since we're just correcting the
glyphs to match the accounting that process_item
has already done.
This was showing up as justification operating
on wrong numbers when justifying lines with a
final space, leading to uneven margins.
pango/pango-layout.c | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 1e8f1087..f820a6c6 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -6003,7 +6003,6 @@ zero_line_final_space (PangoLayoutLine *line,
}
g_debug ("zero line final space: collapsing the space");
- state->remaining_width += glyphs->glyphs[glyph].geometry.width;
glyphs->glyphs[glyph].geometry.width = 0;
glyphs->glyphs[glyph].glyph = PANGO_GLYPH_EMPTY;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]