mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-20 03:17:12 +00:00
upcean: BARCODE_RAW_TEST: need "+" separator for add-ons, else can't
differentiate between EAN-13 and EAN-8 + EAN-5 cli: append "Ital. Pharma" to Code 32 description dxfilmedge: code fiddle
This commit is contained in:
@@ -757,7 +757,6 @@ INTERNAL int eanx_cc(struct zint_symbol *symbol, unsigned char source[], int len
|
||||
int error_number = 0, i, plus_count;
|
||||
int addon_gap = 0;
|
||||
int first_part_len, second_part_len;
|
||||
const int raw_text = symbol->output_options & BARCODE_RAW_TEXT;
|
||||
|
||||
if (length > 19) {
|
||||
return errtxtf(ZINT_ERROR_TOO_LONG, symbol, 283, "Input length %d too long (maximum 19)", length);
|
||||
@@ -941,9 +940,7 @@ INTERNAL int eanx_cc(struct zint_symbol *symbol, unsigned char source[], int len
|
||||
|
||||
if (second_part_len) {
|
||||
ean_add_on(second_part, second_part_len, dest, addon_gap);
|
||||
if (!raw_text) {
|
||||
hrt_cat_chr_nochk(symbol, '+');
|
||||
}
|
||||
hrt_cat_chr_nochk(symbol, '+');
|
||||
hrt_cat_nochk(symbol, second_part, second_part_len);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user