1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

distribute_table_widths(): simplify.

This commit is contained in:
Laurent MONIN 2005-12-01 11:39:39 +01:00 committed by Laurent MONIN
parent 978eff94ad
commit 37b1fcadea

View File

@ -1229,13 +1229,14 @@ draw_table_bad_html(struct html_context *html_context, struct table *table)
static void
distribute_table_widths(struct table *table)
{
/* DBG("%d %d %d", t->min_width, t->max_width, table->width); */
if (table->min_width >= table->width)
distribute_widths(table, table->min_width);
else if (table->max_width < table->width && table->full_width)
distribute_widths(table, table->max_width);
else
distribute_widths(table, table->width);
int width = table->width;
if (table->min_width >= width)
width = table->min_width;
else if (table->max_width < width && table->full_width)
width = table->max_width;
distribute_widths(table, width);
}
void