summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-08-25 15:36:04 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-08-25 16:07:33 -0400
commit236453c63b18449bc57e3534baceb517d10393c0 (patch)
tree57674bc47df69df7dbdf1fe2edf8b798f2d10e73 /pango
parent89a3cf84e97f56cf6975741594a2b1baf915671c (diff)
downloadpango-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.c3
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)