mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Expand ECI support and enforce binary mode when ECI is set
This commit is contained in:
@ -1053,6 +1053,11 @@ int grid_matrix(struct zint_symbol *symbol, const unsigned char source[], size_t
|
||||
}
|
||||
|
||||
if (symbol->output_options & READER_INIT) reader = 1;
|
||||
|
||||
if (symbol->eci > 811799) {
|
||||
strcpy(symbol->errtxt, "Invalid ECI");
|
||||
return ZINT_ERROR_INVALID_OPTION;
|
||||
}
|
||||
|
||||
error_number = gm_encode(gbdata, length, binary, reader, symbol->eci, symbol->debug);
|
||||
if (error_number != 0) {
|
||||
|
Reference in New Issue
Block a user