From a6c93f198962cb92547bd9f33522d61586592d29 Mon Sep 17 00:00:00 2001 From: Robin Stuart Date: Fri, 15 Mar 2019 19:15:47 +0000 Subject: [PATCH] Recognise spaces as valid mode 2 character Fixes #116 reported by Grzegorz Krukar --- backend/maxicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/maxicode.c b/backend/maxicode.c index 362433c5..2d42f94c 100644 --- a/backend/maxicode.c +++ b/backend/maxicode.c @@ -607,7 +607,7 @@ int maxicode(struct zint_symbol *symbol, unsigned char local_source[], const int } else { mode = 2; for (i = 0; i < 10 && i < lp; i++) { - if ((symbol->primary[i] < 48) || (symbol->primary[i] > 57)) { + if (((symbol->primary[i] < 48) || (symbol->primary[i] > 57)) && (symbol->primary[i] != ' ')) { mode = 3; break; }