From caa4bb913f258f18c2d449484fa972f493eac461 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Sun, 19 Jun 2016 14:29:39 +0100 Subject: [PATCH] Don't add descriptor to EPS and SVG if text is supressed --- backend/ps.c | 2 +- backend/svg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/ps.c b/backend/ps.c index 5dbf7798..add5a9bd 100644 --- a/backend/ps.c +++ b/backend/ps.c @@ -273,7 +273,7 @@ int ps_plot(struct zint_symbol *symbol) { /* Start writing the header */ fprintf(feps, "%%!PS-Adobe-3.0 EPSF-3.0\n"); fprintf(feps, "%%%%Creator: Zint %s\n", ZINT_VERSION); - if (ustrlen(local_text) != 0) { + if ((ustrlen(local_text) != 0) && (symbol->show_hrt != 0)) { fprintf(feps, "%%%%Title: %s\n", local_text); } else { fprintf(feps, "%%%%Title: Zint Generated Symbol\n"); diff --git a/backend/svg.c b/backend/svg.c index 61d0a216..d6b2775f 100644 --- a/backend/svg.c +++ b/backend/svg.c @@ -216,7 +216,7 @@ int svg_plot(struct zint_symbol *symbol) { fprintf(fsvg, "\n"); - if (ustrlen(local_text) != 0) { + if ((ustrlen(local_text) != 0) && (symbol->show_hrt != 0)) { fprintf(fsvg, " %s\n", local_text); } else { fprintf(fsvg, " Zint Generated Symbol\n");