summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-04-29 08:10:58 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-04-29 08:10:58 +0000
commit4c11a6652d2305abf0658a00f72c6268b3f5e527 (patch)
treeac0e3a43738330a5c355d0bf74bfb0d9a68673c5 /pango
parent5be6f50a77e7e39e1b7533ed4ddb4cefe43cb386 (diff)
downloadpango-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')
-rw-r--r--pango/glyphstring.c4
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