[project @ 2004-02-15 22:37:52 by jmb]

Don't add zero length text strings.

svn path=/import/netsurf/; revision=551
This commit is contained in:
John Mark Bell 2004-02-15 22:37:52 +00:00
parent 94bb784e4a
commit 9ec96ea66b
1 changed files with 5 additions and 0 deletions

View File

@ -237,6 +237,11 @@ void add_objects(struct content *content, struct box *box,
return;
}
else if (box->text && box->font) {
if (strlen(box->text) == 0) {
return;
}
/* text-decoration */
colour = box->style->color;
colour = ((((colour >> 16) + (cbc >> 16)) / 2) << 16)