summaryrefslogtreecommitdiff
path: root/pango/glyphstring.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-01-10 20:07:52 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-01-10 20:07:52 +0000
commit366a6f92ebe654194dd4b6c4caf13f9ab594024c (patch)
tree5ae091fd7e56e0b5d6421251611b0b58ba50c4bf /pango/glyphstring.c
parentc028808696a65c64e206cebe853c39a4cf86888b (diff)
downloadpango-366a6f92ebe654194dd4b6c4caf13f9ab594024c.tar.gz
Don't offset the logical rect by y_offset - this generally is not desired,
Thu Jan 10 15:04:31 2002 Owen Taylor <otaylor@redhat.com> * pango/glyphstring.c (pango_glyph_string_extents_range): Don't offset the logical rect by y_offset - this generally is not desired, since it means that the logical height of a line could change if it included accented characters. (#67921, Dov Grobgeld)
Diffstat (limited to 'pango/glyphstring.c')
-rw-r--r--pango/glyphstring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/glyphstring.c b/pango/glyphstring.c
index 26b67dd7..9a930a37 100644
--- a/pango/glyphstring.c
+++ b/pango/glyphstring.c
@@ -214,9 +214,9 @@ pango_glyph_string_extents_range (PangoGlyphString *glyphs,
{
logical_rect->width += geometry->width;
- new_pos = MIN (logical_rect->y, glyph_logical.y + geometry->y_offset);
+ new_pos = MIN (logical_rect->y, glyph_logical.y);
logical_rect->height = MAX (logical_rect->y + logical_rect->height,
- glyph_logical.y + glyph_logical.height + geometry->y_offset) - new_pos;
+ glyph_logical.y + glyph_logical.height) - new_pos;
logical_rect->y = new_pos;
}
}