Minor bugfix

This commit is contained in:
hooper114 2009-05-19 14:04:19 +00:00
parent c47744c019
commit 661578f18b

View File

@ -640,9 +640,13 @@ int ZBarcode_Print_Rotated(struct zint_symbol *symbol, int rotate_angle)
if(!(strcmp(output, "EPS"))) { if(!(strcmp(output, "EPS"))) {
error_number = ps_plot(symbol); error_number = ps_plot(symbol);
} else { } else {
strcpy(symbol->errtxt, "Unknown output format"); if(!(strcmp(output, "SVG"))) {
error_tag(symbol->errtxt, ERROR_INVALID_OPTION); error_number = svg_plot(symbol);
return ERROR_INVALID_OPTION; } else {
strcpy(symbol->errtxt, "Unknown output format");
error_tag(symbol->errtxt, ERROR_INVALID_OPTION);
return ERROR_INVALID_OPTION;
}
} }
#ifndef NO_PNG #ifndef NO_PNG
} }