mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
[project @ 2005-07-06 19:56:34 by bursa]
Fix broken code in table_find_cell(). svn path=/import/netsurf/; revision=1788
This commit is contained in:
parent
9741deb831
commit
fba1dfcf68
@ -350,10 +350,11 @@ void table_remove_borders(struct css_style *style)
|
||||
struct box *table_find_cell(struct box *table, unsigned int x,
|
||||
unsigned int y)
|
||||
{
|
||||
struct box *row_group, *row = 0, *cell;
|
||||
struct box *row_group, *row, *cell;
|
||||
unsigned int row_num = 0;
|
||||
|
||||
if (table->columns < x || table->rows < y)
|
||||
if (table->columns <= x || table->rows <= y)
|
||||
return 0;
|
||||
|
||||
for (row_group = table->children, row = row_group->children;
|
||||
row_num != y;
|
||||
|
Loading…
Reference in New Issue
Block a user