mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-12 22:25:59 -04:00
Recognise spaces as valid mode 2 character
Fixes #116 reported by Grzegorz Krukar
This commit is contained in:
parent
0738c3fa2f
commit
a6c93f1989
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue