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:
parent
978eff94ad
commit
37b1fcadea
@ -1229,13 +1229,14 @@ draw_table_bad_html(struct html_context *html_context, struct table *table)
|
|||||||
static void
|
static void
|
||||||
distribute_table_widths(struct table *table)
|
distribute_table_widths(struct table *table)
|
||||||
{
|
{
|
||||||
/* DBG("%d %d %d", t->min_width, t->max_width, table->width); */
|
int width = table->width;
|
||||||
if (table->min_width >= table->width)
|
|
||||||
distribute_widths(table, table->min_width);
|
if (table->min_width >= width)
|
||||||
else if (table->max_width < table->width && table->full_width)
|
width = table->min_width;
|
||||||
distribute_widths(table, table->max_width);
|
else if (table->max_width < width && table->full_width)
|
||||||
else
|
width = table->max_width;
|
||||||
distribute_widths(table, table->width);
|
|
||||||
|
distribute_widths(table, width);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user