summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-02-17 08:11:02 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-02-17 08:11:02 +0000
commita8f4e10b37a927543dfebe1a37a4d33463a209fc (patch)
tree85f717fea18ddcc9eadb46e8e1225e07b6e8ba68 /examples
parenta8de81b4d9bc9bf432ce8e194c28bb620faf18dc (diff)
downloadpango-a8f4e10b37a927543dfebe1a37a4d33463a209fc.tar.gz
Bug 329148 – pango_glyph_item_split: assertion `split_index > 0' failed
2006-02-17 Behdad Esfahbod <behdad@gnome.org> Bug 329148 – pango_glyph_item_split: assertion `split_index > 0' failed * pango/ellipsize.c (init_state): Do not mistakenly set start_offset = 0.
Diffstat (limited to 'examples')
-rw-r--r--examples/renderdemo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/renderdemo.c b/examples/renderdemo.c
index 76cea9a8..52e911bf 100644
--- a/examples/renderdemo.c
+++ b/examples/renderdemo.c
@@ -215,6 +215,7 @@ output_body (PangoContext *context,
(*render_cb) (layout, x, y+*height, cb_context, cb_data);
*width = MAX (*width, PANGO_PIXELS (logical_rect.x + logical_rect.width));
+ *width = MAX (*width, PANGO_PIXELS (pango_layout_get_width (layout)));
*height += PANGO_PIXELS (logical_rect.height);
g_object_unref (layout);