mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Bug fix: Does not detect automatic size option
This commit is contained in:
parent
84b0118c04
commit
38051c8dc1
@ -1212,7 +1212,7 @@ int matrix89(struct zint_symbol *symbol, unsigned char source[])
|
|||||||
symbol_size = (symbol->option_2 - 1);
|
symbol_size = (symbol->option_2 - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(((symbol->option_2 - 1) < symbol_size) && ((symbol->option_2 - 1) != 0)) {
|
if(((symbol->option_2 - 1) < symbol_size) && (symbol->option_2 != 0)) {
|
||||||
strcpy(symbol->errtxt, "Unable to fit data in specified symbol size");
|
strcpy(symbol->errtxt, "Unable to fit data in specified symbol size");
|
||||||
error_number = WARN_INVALID_OPTION;
|
error_number = WARN_INVALID_OPTION;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user