--- libgtkhtml-2.2.0/libgtkhtml/layout/htmlboxtable.c.old 2003-01-06 11:06:15.000000000 -0500 +++ libgtkhtml-2.2.0/libgtkhtml/layout/htmlboxtable.c 2003-02-24 18:17:59.000000000 -0500 @@ -503,7 +503,7 @@ for (i=0; i< table->cols; i++) { if (table->col_info[i].style_width.type == type) { /* Make the space added proportional against the max width of the column */ - gint to_add = (gint)((float) table->col_info[i].max / (float) max_width * (float)tmp); + gint to_add = max_width ? (gint)((float) table->col_info[i].max / (float) max_width * (float)tmp) : 0; // don't div by zero on alpha if (to_add == 0) to_add = 1;