summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/save_draw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscos/save_draw.c b/riscos/save_draw.c
index 836b87a75..cf073f028 100644
--- a/riscos/save_draw.c
+++ b/riscos/save_draw.c
@@ -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)