diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2012-08-25 15:36:04 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2012-08-25 16:07:33 -0400 |
commit | 236453c63b18449bc57e3534baceb517d10393c0 (patch) | |
tree | 57674bc47df69df7dbdf1fe2edf8b798f2d10e73 /pango | |
parent | 89a3cf84e97f56cf6975741594a2b1baf915671c (diff) | |
download | pango-236453c63b18449bc57e3534baceb517d10393c0.tar.gz |
Bug 678721 - Don't need to get item properties in pango_layout_line_x_to_index
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-layout.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 16ecc4a2..1cd9c39a 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -4129,11 +4129,8 @@ pango_layout_line_x_to_index (PangoLayoutLine *line, while (tmp_list) { PangoLayoutRun *run = tmp_list->data; - ItemProperties properties; int logical_width; - pango_layout_get_item_properties (run->item, &properties); - logical_width = pango_glyph_string_get_width (run->glyphs); if (x_pos >= start_pos && x_pos < start_pos + logical_width) |