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.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;
}
}