mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-19 19:07:09 +00:00
Calculate correct number of codeblocks for DataBar ExpStack
This commit is contained in:
@@ -2082,7 +2082,7 @@ int rssexpanded(struct zint_symbol *symbol, unsigned char source[], int src_len)
|
|||||||
* [01]90614141999996[10]1234222222222221
|
* [01]90614141999996[10]1234222222222221
|
||||||
* Patch by Daniel Frede
|
* Patch by Daniel Frede
|
||||||
*/
|
*/
|
||||||
codeblocks = (data_chars + 1) / 2 + 1;
|
codeblocks = (data_chars + 1) / 2 + ((data_chars + 1) % 2);
|
||||||
|
|
||||||
if((symbol->option_2 < 1) || (symbol->option_2 > 10)) {
|
if((symbol->option_2 < 1) || (symbol->option_2 > 10)) {
|
||||||
symbol->option_2 = 2;
|
symbol->option_2 = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user