From 54c0a858ea01b4f946704b550fd9cedfa9e82c6b Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Thu, 27 Oct 2016 13:47:32 +0100 Subject: [PATCH] Don't include empty strings in output SVG --- backend/svg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/svg.c b/backend/svg.c index 6e76355d..e2e688ac 100644 --- a/backend/svg.c +++ b/backend/svg.c @@ -646,7 +646,7 @@ int svg_plot(struct zint_symbol *symbol) { } /* Put the human readable text at the bottom */ - if (textdone == 0) { + if ((textdone == 0) && ustrlen(local_text)) { textpos = symbol->width / 2.0; fprintf(fsvg, " \n", 8.0 * scaler, symbol->fgcolour);