mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
library.c: error_tag(): check error_number < ZINT_ERROR on WARN_FAIL_ALL
This commit is contained in:
parent
603f5931de
commit
c4b7921819
3 changed files with 10 additions and 7 deletions
|
@ -218,7 +218,7 @@ STATIC_UNLESS_ZINT_TEST int error_tag(struct zint_symbol *symbol, int error_numb
|
|||
const char *fmt = error_number >= ZINT_ERROR ? error_fmt : warn_fmt;
|
||||
char error_buffer[100];
|
||||
|
||||
if (symbol->warn_level == WARN_FAIL_ALL) {
|
||||
if (error_number < ZINT_ERROR && symbol->warn_level == WARN_FAIL_ALL) {
|
||||
/* Convert to error equivalent */
|
||||
if (error_number == ZINT_WARN_NONCOMPLIANT) {
|
||||
error_number = ZINT_ERROR_NONCOMPLIANT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue