summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-08-15 20:46:10 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-08-15 20:46:10 +0000
commit4adf7dea1e8ecedb3bf9325be46c19c0167e0009 (patch)
tree1024154a4f997dbcf23f59a50199c79b2fe63643 /pango/pango-layout.c
parent5ad6cd2803ba45fbdffe5226ace285ca4a696a60 (diff)
downloadpango-4adf7dea1e8ecedb3bf9325be46c19c0167e0009.tar.gz
Remove excess LRM.
2006-08-15 Behdad Esfahbod <behdad@gnome.org> * examples/HELLO.utf8: Remove excess LRM. * examples/viewer-pangocairo.c (render_callback): Draw baselines in border-drawing mode. * pango/pango-layout.c (pango_layout_line_get_extents): Make sure we set logical_rect.y on empty lines. Previously empty lines had wrong baseline. The code apparently was written like that intentionally, but I cannot find out why.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 11cd6035..db2c870c 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -4060,11 +4060,7 @@ pango_layout_line_get_extents (PangoLayoutLine *line,
}
if (logical_rect && !line->runs)
- {
- PangoRectangle temp_rect;
- pango_layout_line_get_empty_extents (line, &temp_rect);
- logical_rect->height = temp_rect.height;
- }
+ pango_layout_line_get_empty_extents (line, logical_rect);
}
static PangoLayoutLine *