mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Correct length estimate for FNC1
This commit is contained in:
parent
700c47d9d0
commit
9b569c8717
@ -689,7 +689,7 @@ int ean_128(struct zint_symbol *symbol, unsigned char source[])
|
||||
}
|
||||
}
|
||||
|
||||
if(set[i] == 'C') {
|
||||
if((set[i] == 'C') && (reduced[i] != '[')) {
|
||||
glyph_count = glyph_count + 0.5;
|
||||
} else {
|
||||
glyph_count = glyph_count + 1.0;
|
||||
@ -765,9 +765,10 @@ int ean_128(struct zint_symbol *symbol, unsigned char source[])
|
||||
c128_set_b(reduced[read], dest, values, &bar_characters);
|
||||
read++;
|
||||
break;
|
||||
case 'C': c128_set_c(reduced[read], reduced[read + 1], dest, values, &bar_characters);
|
||||
read += 2;
|
||||
break;
|
||||
case 'C':
|
||||
c128_set_c(reduced[read], reduced[read + 1], dest, values, &bar_characters);
|
||||
read += 2;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
concat(dest, C128Table[102]);
|
||||
|
Loading…
Reference in New Issue
Block a user