Enforce height of PDF417 rows

Fixes #55, Bugfix by Galen Rice
This commit is contained in:
Robin Stuart 2017-03-17 17:08:50 +00:00
parent eb1d246a4d
commit 939d4de4f0

View File

@ -815,9 +815,9 @@ int pdf417(struct zint_symbol *symbol, unsigned char chaine[], int length) {
set_module(symbol, i, loop);
}
}
if (symbol->height == 0) {
symbol->row_height[i] = 3;
}
symbol->row_height[i] = 3;
}
symbol->rows = (mclength / symbol->option_2);
symbol->width = strlen(pattern);