mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Recognise spaces as valid mode 2 character
Fixes #116 reported by Grzegorz Krukar
This commit is contained in:
parent
0738c3fa2f
commit
a6c93f1989
@ -607,7 +607,7 @@ int maxicode(struct zint_symbol *symbol, unsigned char local_source[], const int
|
|||||||
} else {
|
} else {
|
||||||
mode = 2;
|
mode = 2;
|
||||||
for (i = 0; i < 10 && i < lp; i++) {
|
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;
|
mode = 3;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user