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");