mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-17 08:34:36 -04:00
Bugfix: Crash on setting option_2 for DotCode
Bug report by Michael
This commit is contained in:
parent
3b366bbbd2
commit
2e11b5f8d3
1 changed files with 1 additions and 1 deletions
|
@ -1076,7 +1076,7 @@ int dotcode(struct zint_symbol *symbol, unsigned char source[], int length) {
|
|||
} else {
|
||||
width = symbol->option_2;
|
||||
|
||||
height = min_dots / width;
|
||||
height = (2 * min_dots) / width;
|
||||
|
||||
if (!((width + height) % 2)) {
|
||||
height++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue