mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-13 06:34:32 -04:00
Add error message when PNG is called but disabled on compile time.
This commit is contained in:
parent
17474b10d8
commit
f23e13b09d
1 changed files with 2 additions and 1 deletions
|
@ -1166,6 +1166,7 @@ INTERNAL int plot_raster(struct zint_symbol *symbol, int rotate_angle, int file_
|
||||||
|
|
||||||
#ifdef NO_PNG
|
#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;
|
return ZINT_ERROR_INVALID_OPTION;
|
||||||
}
|
}
|
||||||
#endif /* NO_PNG */
|
#endif /* NO_PNG */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue