mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-17 00:24:35 -04:00
Code 11 correction by John Tarbotton
This commit is contained in:
parent
c5a0dd11af
commit
7ad339627c
1 changed files with 4 additions and 1 deletions
|
@ -117,6 +117,9 @@ int code_11(struct zint_symbol *symbol, unsigned char source[])
|
||||||
/* Draw main body of barcode */
|
/* Draw main body of barcode */
|
||||||
for(i = 0; i < ustrlen(source); i++) {
|
for(i = 0; i < ustrlen(source); i++) {
|
||||||
lookup(NASET, C11Table, source[i], dest);
|
lookup(NASET, C11Table, source[i], dest);
|
||||||
|
if(source[i] == '-')
|
||||||
|
weight[i] = 10;
|
||||||
|
else
|
||||||
weight[i] = ctoi(source[i]);
|
weight[i] = ctoi(source[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue