summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-11-12 18:31:09 -0500
committerMatthias Clasen <mclasen@redhat.com>2021-11-12 18:41:44 -0500
commit9b95dc725c3ebbed22edbe035c9ac0d610c64a30 (patch)
treedd5f0f5b75741a60b74854eaa62a500ce6507716
parentd98a4c78c5a57e2dd2d888f489971d8221e4d104 (diff)
downloadpango-9b95dc725c3ebbed22edbe035c9ac0d610c64a30.tar.gz
-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 c94617aa..5cdaa531 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -3766,7 +3766,7 @@ find_break_extra_width (PangoLayout *layout,
else
return state->hyphen_width;
}
- else if (state->start_offset + pos > 0 &&
+ else if (pos > 0 &&
layout->log_attrs[state->start_offset + pos - 1].is_white)
{
return - state->log_widths[state->log_widths_offset + pos - 1];