summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
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);