summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-25 09:08:34 +0200
committerMatthias Clasen <mclasen@redhat.com>2019-08-25 09:08:34 +0200
commitbacd95e5239f5e252e7face4163779843f9efa6b (patch)
tree1ae6c638323d0fa88ebc25c75b65944540cb0458 /pango/pango-layout.c
parent321385d88cdac8ba20a43572456dd7b23a336ab9 (diff)
downloadpango-bacd95e5239f5e252e7face4163779843f9efa6b.tar.gz
Fix a problem with allow-breaks
Fix an oversight in the calculation of log attributes. This was showing up as allow-breaks attributes being applied to the wrong ranges in later runs.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 67db57bb..110311a8 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -4020,7 +4020,6 @@ get_items_log_attrs (const char *text,
int log_attrs_len)
{
int offset = 0;
- int num_chars = 0;
GList *l;
pango_default_break (text, length, NULL, log_attrs, log_attrs_len);
@@ -4036,7 +4035,7 @@ get_items_log_attrs (const char *text,
log_attrs + offset,
item->num_chars + 1);
- offset += num_chars;
+ offset += item->num_chars;
}
}