mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-20 10:15:10 -04:00
Adjusted for change of symbology numbers.
This commit is contained in:
parent
cc348e0369
commit
086d26093b
1 changed files with 5 additions and 1 deletions
|
@ -162,6 +162,10 @@ int c39(struct zint_symbol *symbol, unsigned char source[])
|
||||||
counter = 0;
|
counter = 0;
|
||||||
strcpy(dest, "");
|
strcpy(dest, "");
|
||||||
|
|
||||||
|
if((symbol->option_2 < 0) || (symbol->option_2 > 1)) {
|
||||||
|
symbol->option_2 = 0;
|
||||||
|
}
|
||||||
|
|
||||||
to_upper(source);
|
to_upper(source);
|
||||||
if(strlen(source) > 45) {
|
if(strlen(source) > 45) {
|
||||||
strcpy(symbol->errtxt, "error: input too long");
|
strcpy(symbol->errtxt, "error: input too long");
|
||||||
|
@ -181,7 +185,7 @@ int c39(struct zint_symbol *symbol, unsigned char source[])
|
||||||
counter += posn(TCSET, source[i]);
|
counter += posn(TCSET, source[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(((symbol->symbology == BARCODE_LOGMARS) || (symbol->symbology == BARCODE_CODE39_43)) || (symbol->symbology == BARCODE_EXCODE39_43)) {
|
if((symbol->symbology == BARCODE_LOGMARS) || (symbol->option_2 == 1)) {
|
||||||
|
|
||||||
counter = counter % 43;
|
counter = counter % 43;
|
||||||
if(counter < 10) {
|
if(counter < 10) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue