Always parse input as GS1 for EAN128 and RSS_EXP

This commit is contained in:
gitlost
2019-10-17 10:06:21 +01:00
parent b1113db942
commit 739793a215
13 changed files with 549 additions and 106 deletions

View File

@ -1883,10 +1883,9 @@ int composite(struct zint_symbol *symbol, unsigned char source[], int length) {
}
}
}
if ((linear->width + bottom_shift) > symbol->width) {
if ((linear->width + bottom_shift) > symbol->width + top_shift) {
symbol->width = linear->width + bottom_shift;
}
if ((symbol->width + top_shift) > symbol->width) {
} else if ((symbol->width + top_shift) > linear->width + bottom_shift) {
symbol->width += top_shift;
}
symbol->rows += linear->rows;