summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--pango/glyphstring.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a6563dcb..8787f0c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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