mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Code 11 correction by John Tarbotton
This commit is contained in:
parent
c5a0dd11af
commit
7ad339627c
@ -117,7 +117,10 @@ int code_11(struct zint_symbol *symbol, unsigned char source[])
|
||||
/* Draw main body of barcode */
|
||||
for(i = 0; i < ustrlen(source); i++) {
|
||||
lookup(NASET, C11Table, source[i], dest);
|
||||
weight[i] = ctoi(source[i]);
|
||||
if(source[i] == '-')
|
||||
weight[i] = 10;
|
||||
else
|
||||
weight[i] = ctoi(source[i]);
|
||||
}
|
||||
|
||||
/* Calculate C checksum */
|
||||
|
Loading…
Reference in New Issue
Block a user