[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:
James Bursa 2005-07-06 19:56:34 +00:00
parent 9741deb831
commit fba1dfcf68

View File

@ -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;