mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add error message when PNG is called but disabled on compile time.
This commit is contained in:
parent
17474b10d8
commit
f23e13b09d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user