summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 703f4573..40e24cbb 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -3750,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;