summaryrefslogtreecommitdiff
path: root/pango/pango-renderer.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-07-08 22:15:32 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-07-08 22:15:32 +0000
commitb9f7b88e3d100b87a856e077b5f2fdbf49c73ebb (patch)
treee51a0fd2de7833ca1e05722f870a92d8f25d0a14 /pango/pango-renderer.c
parentd54f97cea6ac3136621fc06a5239ad4bf142fde9 (diff)
downloadpango-b9f7b88e3d100b87a856e077b5f2fdbf49c73ebb.tar.gz
Fix silly error in implementation of pango_glyph_string_get_width(), and
2006-07-08 Behdad Esfahbod <behdad@gnome.org> * pango/glyphstring.c (pango_glyph_string_get_width): * pango/pango-glyph.h: * pango/pango-layout.c (pango_layout_line_index_to_x), (pango_layout_line_x_to_index), (pango_layout_line_get_x_ranges): * pango/pango-renderer.c (pango_renderer_draw_layout_line): Fix silly error in implementation of pango_glyph_string_get_width(), and also remove unused font parameter from its signature.
Diffstat (limited to 'pango/pango-renderer.c')
-rw-r--r--pango/pango-renderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index 4c96972a..c53f645d 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -496,7 +496,7 @@ pango_renderer_draw_layout_line (PangoRenderer *renderer,
renderer->strikethrough)
pango_glyph_string_extents (run->glyphs, run->item->analysis.font,
&ink_rect, NULL);
- glyph_string_width = pango_glyph_string_get_width (run->glyphs, run->item->analysis.font);
+ glyph_string_width = pango_glyph_string_get_width (run->glyphs);
}
state.logical_rect_end = x + x_off + glyph_string_width;