From abc518d3298d6e1f73b0163dc09ce60ff60c248d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Sat, 30 Nov 2013 13:51:33 +0100 Subject: Fix assertion failture on max_child_size This fixes the crasher when opening properties. --- eel/eel-wrap-table.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'eel/eel-wrap-table.c') diff --git a/eel/eel-wrap-table.c b/eel/eel-wrap-table.c index 26e06ef8..eea8b2d0 100644 --- a/eel/eel-wrap-table.c +++ b/eel/eel-wrap-table.c @@ -535,6 +535,9 @@ wrap_table_layout (EelWrapTable *wrap_table) g_assert (EEL_IS_WRAP_TABLE (wrap_table)); max_child_dimensions = wrap_table_get_max_child_dimensions (wrap_table); + max_child_dimensions.width = MAX (max_child_dimensions.width, 1); + max_child_dimensions.height = MAX (max_child_dimensions.height, 1); + content_bounds = wrap_table_get_content_bounds (wrap_table); pos.x = content_bounds.x0; pos.y = content_bounds.y0; -- cgit v1.2.1