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:
Robin Stuart 2010-12-19 13:55:43 +00:00
parent 08a24d9f94
commit 964a178afe

View File

@ -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;
}
}