[pango/ltr-line-breaking-fixes: 11/11] Fix a thinko
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/ltr-line-breaking-fixes: 11/11] Fix a thinko
- Date: Fri, 12 Nov 2021 23:41:57 +0000 (UTC)
commit 9b95dc725c3ebbed22edbe035c9ac0d610c64a30
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 12 18:31:09 2021 -0500
Fix a thinko
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 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];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]