From 661578f18b040a2cb589083eefd2c838091687b6 Mon Sep 17 00:00:00 2001 From: hooper114 Date: Tue, 19 May 2009 14:04:19 +0000 Subject: [PATCH] Minor bugfix --- backend/library.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/library.c b/backend/library.c index 4e45ad21..a1d1174b 100644 --- a/backend/library.c +++ b/backend/library.c @@ -640,9 +640,13 @@ int ZBarcode_Print_Rotated(struct zint_symbol *symbol, int rotate_angle) if(!(strcmp(output, "EPS"))) { error_number = ps_plot(symbol); } else { - strcpy(symbol->errtxt, "Unknown output format"); - error_tag(symbol->errtxt, ERROR_INVALID_OPTION); - return ERROR_INVALID_OPTION; + if(!(strcmp(output, "SVG"))) { + error_number = svg_plot(symbol); + } else { + strcpy(symbol->errtxt, "Unknown output format"); + error_tag(symbol->errtxt, ERROR_INVALID_OPTION); + return ERROR_INVALID_OPTION; + } } #ifndef NO_PNG }