mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Lower character bugfix
This commit is contained in:
parent
b62a0ca33a
commit
d6d88b6bc1
@ -346,6 +346,11 @@ int code16k(struct zint_symbol *symbol, unsigned char source[])
|
|||||||
bar_characters += 2;
|
bar_characters += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for(j = 0; j < ustrlen(source); j++) {
|
||||||
|
if(set[j] == 'a') { set[j] = 'A'; }
|
||||||
|
if(set[j] == 'b') { set[j] = 'B'; }
|
||||||
|
}
|
||||||
|
|
||||||
read = 0;
|
read = 0;
|
||||||
/* Encode the data */
|
/* Encode the data */
|
||||||
do {
|
do {
|
||||||
@ -442,6 +447,7 @@ int code16k(struct zint_symbol *symbol, unsigned char source[])
|
|||||||
bar_characters++;
|
bar_characters++;
|
||||||
read++;
|
read++;
|
||||||
}
|
}
|
||||||
|
|
||||||
} while (read < ustrlen(source));
|
} while (read < ustrlen(source));
|
||||||
|
|
||||||
pads_needed = 5 - ((bar_characters + 2) % 5);
|
pads_needed = 5 - ((bar_characters + 2) % 5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user