mirror of
https://git.code.sf.net/p/zint/code
synced 2026-10-29 06:12:31 +00:00
library: fix warn_level check from last commit
This commit is contained in:
+1
-1
@@ -1152,7 +1152,7 @@ int ZBarcode_Encode_Segs(struct zint_symbol *symbol, const struct zint_seg segs[
|
||||
if (symbol->border_width < 0 || symbol->border_width > 100) {
|
||||
return error_tag(ZINT_ERROR_INVALID_OPTION, symbol, 768, "Border width out of range (0 to 100)");
|
||||
}
|
||||
if ((symbol->warn_level & WARN_LEVEL_MASK) != WARN_LEVEL_MASK) {
|
||||
if (symbol->warn_level & ~WARN_LEVEL_MASK) {
|
||||
symbol->warn_level = WARN_DEFAULT; /* Silently reset */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user