mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Fix another simple Code 128 bug (not enough room for text)
This commit is contained in:
parent
b005aea25a
commit
71f3316f5b
@ -46,7 +46,7 @@ struct zint_symbol *ZBarcode_Create()
|
|||||||
symbol->option_2 = 0;
|
symbol->option_2 = 0;
|
||||||
symbol->option_3 = 928; // PDF_MAX
|
symbol->option_3 = 928; // PDF_MAX
|
||||||
strcpy(symbol->primary, "");
|
strcpy(symbol->primary, "");
|
||||||
for(i = 0; i < 90; i++) {
|
for(i = 0; i < 178; i++) {
|
||||||
for(j = 0; j < 1000; j++) {
|
for(j = 0; j < 1000; j++) {
|
||||||
symbol->encoded_data[i][j] = '0';
|
symbol->encoded_data[i][j] = '0';
|
||||||
}
|
}
|
||||||
@ -272,6 +272,7 @@ int ZBarcode_Encode(struct zint_symbol *symbol, unsigned char *input)
|
|||||||
error_number = error_buffer;
|
error_number = error_buffer;
|
||||||
}
|
}
|
||||||
error_tag(symbol->errtxt, error_number);
|
error_tag(symbol->errtxt, error_number);
|
||||||
|
printf("%s\n",symbol->text);
|
||||||
return error_number;
|
return error_number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user