diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | pango/glyphstring.c | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -1,5 +1,12 @@ 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. + +2006-04-29 Behdad Esfahbod <behdad@gnome.org> + Bug 333771 – Use gmodule-no-export-2.0 instead of gmodule-2.0 in pango-uninstalled.pc.in 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 |