Fix for percentage values.

svn path=/trunk/netsurf/; revision=9546
This commit is contained in:
Michael Drake 2009-09-05 16:36:44 +00:00
parent 3dd906c813
commit cd07aa9d31
1 changed files with 4 additions and 2 deletions

View File

@ -1612,9 +1612,11 @@ css_error node_presentational_hint(void *pw, void *node,
&hint->data.length.value,
&hint->data.length.unit)) {
if (is_table_cell &&
INTTOFIX(1) <
hint->data.length.value)
INTTOFIX(0) !=
hint->data.length.value) {
hint->data.length.value = INTTOFIX(1);
hint->data.length.unit = CSS_UNIT_PX;
}
hint->status = CSS_BORDER_WIDTH_WIDTH;
} else {
xmlFree(width);