[pango] Bug 678721 - Don't need to get item properties in pango_layout_line_x_to_index



commit 236453c63b18449bc57e3534baceb517d10393c0
Author: Behdad Esfahbod <behdad behdad org>
Date:   Sat Aug 25 15:36:04 2012 -0400

    Bug 678721 - Don't need to get item properties in pango_layout_line_x_to_index

 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 16ecc4a..1cd9c39 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]