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;
|
glyph_count = glyph_count + 0.5;
|
||||||
} else {
|
} else {
|
||||||
glyph_count = glyph_count + 1.0;
|
glyph_count = glyph_count + 1.0;
|
||||||
@ -765,7 +765,8 @@ int ean_128(struct zint_symbol *symbol, unsigned char source[])
|
|||||||
c128_set_b(reduced[read], dest, values, &bar_characters);
|
c128_set_b(reduced[read], dest, values, &bar_characters);
|
||||||
read++;
|
read++;
|
||||||
break;
|
break;
|
||||||
case 'C': c128_set_c(reduced[read], reduced[read + 1], dest, values, &bar_characters);
|
case 'C':
|
||||||
|
c128_set_c(reduced[read], reduced[read + 1], dest, values, &bar_characters);
|
||||||
read += 2;
|
read += 2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user