mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Bug fix: Leading zeroes make ISBN wrong length
This commit is contained in:
parent
3cd0c5d2d8
commit
84b0118c04
@ -546,7 +546,7 @@ void ean_leading_zeroes(struct zint_symbol *symbol, unsigned char source[], unsi
|
|||||||
if(first_len <= 6) { zfirst_len = 6; }
|
if(first_len <= 6) { zfirst_len = 6; }
|
||||||
break;
|
break;
|
||||||
case BARCODE_ISBNX:
|
case BARCODE_ISBNX:
|
||||||
if(first_len <= 11) { zfirst_len = 11; }
|
if(first_len <= 9) { zfirst_len = 9; }
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(second_len <= 5) { zsecond_len = 5; }
|
if(second_len <= 5) { zsecond_len = 5; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user