blob: 41480dacf6da58731392a23a01b04b0c2c5666c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-aa,v 1.5 2010/07/06 15:19:46 drochner Exp $
--- eel/eel-wrap-table.c.orig 2009-12-15 10:22:12.000000000 +0000
+++ eel/eel-wrap-table.c
@@ -518,6 +518,10 @@ wrap_table_layout (EelWrapTable *wrap_ta
pos.x = content_bounds.x0;
pos.y = content_bounds.y0;
+ /* XXX hack: avoid crash if no icons are found */
+ if (!max_child_dimensions.width)
+ max_child_dimensions.width = 1;
+
num_cols = wrap_table_get_num_fitting (GTK_WIDGET (wrap_table)->allocation.width -
GTK_CONTAINER (wrap_table)->border_width * 2,
wrap_table->details->x_spacing,
|