diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-04-29 08:10:58 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-04-29 08:10:58 +0000 |
commit | 4c11a6652d2305abf0658a00f72c6268b3f5e527 (patch) | |
tree | ac0e3a43738330a5c355d0bf74bfb0d9a68673c5 /pango/glyphstring.c | |
parent | 5be6f50a77e7e39e1b7533ed4ddb4cefe43cb386 (diff) | |
download | pango-4c11a6652d2305abf0658a00f72c6268b3f5e527.tar.gz |
Bug 337594 – pango_glyph_string_extents_range possible bug
2006-04-29 Behdad Esfahbod <behdad@gnome.org>
Bug 337594 – pango_glyph_string_extents_range possible bug
* pango/glyphstring.c (pango_glyph_string_extents_range): Add offset
for first glyph too.
Diffstat (limited to 'pango/glyphstring.c')
-rw-r--r-- | pango/glyphstring.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/glyphstring.c b/pango/glyphstring.c index 2f64b92e..c4c5c8cd 100644 --- a/pango/glyphstring.c +++ b/pango/glyphstring.c @@ -197,9 +197,9 @@ pango_glyph_string_extents_range (PangoGlyphString *glyphs, { if (ink_rect->width == 0 || ink_rect->height == 0) { - ink_rect->x = x_pos + glyph_ink.x; + ink_rect->x = x_pos + glyph_ink.x + geometry->x_offset; ink_rect->width = glyph_ink.width; - ink_rect->y = glyph_ink.y; + ink_rect->y = glyph_ink.y + geometry->y_offset; ink_rect->height = glyph_ink.height; } else |