Recognise spaces as valid mode 2 character

Fixes #116 reported by Grzegorz Krukar
This commit is contained in:
Robin Stuart 2019-03-15 19:15:47 +00:00
parent 0738c3fa2f
commit a6c93f1989

View File

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