mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Data Matrix bugfix to use all of symbol
Length of encoded data did not map correctly to symbol sizes, Zint now allows up to the maximum capacity in symbols. Thanks to Andreas Warmer.
This commit is contained in:
@ -800,7 +800,7 @@ int data_matrix_200(struct zint_symbol *symbol, unsigned char source[], int leng
|
||||
|
||||
calcsize = 29;
|
||||
for(i = 29; i > -1; i--) {
|
||||
if(matrixbytes[i] > binlen) {
|
||||
if(matrixbytes[i] >= binlen) {
|
||||
calcsize = i;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user