From 366a6f92ebe654194dd4b6c4caf13f9ab594024c Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Thu, 10 Jan 2002 20:07:52 +0000 Subject: Don't offset the logical rect by y_offset - this generally is not desired, Thu Jan 10 15:04:31 2002 Owen Taylor * 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) --- pango/glyphstring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pango/glyphstring.c') 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; } } -- cgit v1.2.1