mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-09 13:05:58 +00:00
First stage at creating ZPL compatability mode
Partly resolves #142 and relates to discussion in #197
This commit is contained in:
@@ -1018,7 +1018,11 @@ INTERNAL int aztec(struct zint_symbol *symbol, unsigned char source[], const siz
|
||||
|
||||
if (!((symbol->option_1 >= -1) && (symbol->option_1 <= 4))) {
|
||||
strcpy(symbol->errtxt, "503: Invalid error correction level - using default instead");
|
||||
err_code = ZINT_WARN_INVALID_OPTION;
|
||||
if (symbol->warn_level == WARN_FAIL_ALL) {
|
||||
return ZINT_ERROR_INVALID_OPTION;
|
||||
} else {
|
||||
err_code = ZINT_WARN_INVALID_OPTION;
|
||||
}
|
||||
symbol->option_1 = -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user