Don't add descriptor to EPS and SVG if text is supressed

This commit is contained in:
Robin Stuart 2016-06-19 14:29:39 +01:00
parent 507071cf9c
commit caa4bb913f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -216,7 +216,7 @@ int svg_plot(struct zint_symbol *symbol) {
fprintf(fsvg, "<svg width=\"%d\" height=\"%d\" version=\"1.1\"\n", (int)ceil((74.0F + xoffset + xoffset) * scaler), (int)ceil((72.0F + yoffset + yoffset) * scaler));
}
fprintf(fsvg, " xmlns=\"http://www.w3.org/2000/svg\">\n");
if (ustrlen(local_text) != 0) {
if ((ustrlen(local_text) != 0) && (symbol->show_hrt != 0)) {
fprintf(fsvg, " <desc>%s\n", local_text);
} else {
fprintf(fsvg, " <desc>Zint Generated Symbol\n");