Add GS1 encoding

This commit is contained in:
hooper114 2009-07-13 19:04:01 +00:00
parent 31ffc6e644
commit 3c5b7d5a2e
2 changed files with 2 additions and 2 deletions

View File

@ -1171,7 +1171,7 @@ int code_one(struct zint_symbol *symbol, unsigned char source[])
} }
if((symbol->option_2 != 9) && (symbol->option_2 != 10)) { if((symbol->option_2 != 9) && (symbol->option_2 != 10)) {
/* Version A to H or T */ /* Version A to H */
unsigned int data[1500], ecc[600]; unsigned int data[1500], ecc[600];
unsigned int sub_data[190], sub_ecc[75]; unsigned int sub_data[190], sub_ecc[75];
unsigned int stream[2100]; unsigned int stream[2100];

View File

@ -51,7 +51,7 @@ int code_49(struct zint_symbol *symbol, unsigned char source[])
strcpy(symbol->errtxt, "Invalid characters in input data"); strcpy(symbol->errtxt, "Invalid characters in input data");
return ERROR_INVALID_DATA; return ERROR_INVALID_DATA;
} }
if(gs1 && (i = 0)) { if(gs1 && (i == 0)) {
concat(intermediate, "*"); /* FNC1 */ concat(intermediate, "*"); /* FNC1 */
} }
if(source[i] == symbol->nullchar) { if(source[i] == symbol->nullchar) {