mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-16 16:14:36 -04:00
Lower character bugfix
This commit is contained in:
parent
b62a0ca33a
commit
d6d88b6bc1
1 changed files with 7 additions and 1 deletions
|
@ -346,6 +346,11 @@ int code16k(struct zint_symbol *symbol, unsigned char source[])
|
|||
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;
|
||||
/* Encode the data */
|
||||
do {
|
||||
|
@ -423,7 +428,7 @@ int code16k(struct zint_symbol *symbol, unsigned char source[])
|
|||
values[bar_characters] = 98;
|
||||
bar_characters++;
|
||||
}
|
||||
|
||||
|
||||
if(!((gs1) && (source[read] == '['))) {
|
||||
switch(set[read])
|
||||
{ /* Encode data characters */
|
||||
|
@ -442,6 +447,7 @@ int code16k(struct zint_symbol *symbol, unsigned char source[])
|
|||
bar_characters++;
|
||||
read++;
|
||||
}
|
||||
|
||||
} while (read < ustrlen(source));
|
||||
|
||||
pads_needed = 5 - ((bar_characters + 2) % 5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue