diff options
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r-- | pango/pango-layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c index a5806774..40e24cbb 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -3501,6 +3501,7 @@ shape_tab (PangoLayoutLine *line, glyphs->glyphs[0].geometry.x_offset = 0; glyphs->glyphs[0].geometry.y_offset = 0; glyphs->glyphs[0].attr.is_cluster_start = 1; + glyphs->glyphs[0].attr.is_color = 0; glyphs->log_clusters[0] = 0; @@ -3749,7 +3750,7 @@ find_break_extra_width (PangoLayout *layout, { ensure_hyphen_width (state); - if (layout->log_attrs[state->start_offset + pos].break_removes_preceding) + if (layout->log_attrs[state->start_offset + pos].break_removes_preceding && pos > 0) return state->hyphen_width - state->log_widths[state->log_widths_offset + pos - 1]; else return state->hyphen_width; |