From f23e13b09d956e3b29cf8801b86ec57f468eeddb Mon Sep 17 00:00:00 2001 From: Harald Oehlmann Date: Tue, 7 Apr 2020 18:39:02 +0200 Subject: [PATCH] Add error message when PNG is called but disabled on compile time. --- backend/raster.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/raster.c b/backend/raster.c index 5705ed91..31dfa863 100644 --- a/backend/raster.c +++ b/backend/raster.c @@ -1165,7 +1165,8 @@ INTERNAL int plot_raster(struct zint_symbol *symbol, int rotate_angle, int file_ int error; #ifdef NO_PNG - if (file_type == OUT_PNG_FILE) { + if (file_type == OUT_PNG_FILE) { + strcpy(symbol->errtxt, "660: PNG format disabled on compile time"); return ZINT_ERROR_INVALID_OPTION; } #endif /* NO_PNG */