[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:
parent
94bb784e4a
commit
9ec96ea66b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue