diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-04-29 08:11:44 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-04-29 08:11:44 +0000 |
commit | eee8654d87924f6e7da2fa9ed78e55a117d0d0f7 (patch) | |
tree | 2794016bc342c0a799d24ed62f22f8a83c128ffe /pango | |
parent | 448a1250519527662b10e53d0ea9a6e2138353d6 (diff) | |
download | pango-eee8654d87924f6e7da2fa9ed78e55a117d0d0f7.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')
-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 e28abbd0..1d2c261b 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 |