From 964a178afe61ce204c09e906c0e2275401bf02b0 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Sun, 19 Dec 2010 13:55:43 +0000 Subject: [PATCH] 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. --- backend/dmatrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/dmatrix.c b/backend/dmatrix.c index 355df4a2..f98e737d 100644 --- a/backend/dmatrix.c +++ b/backend/dmatrix.c @@ -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; } }