mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-19 10:57:07 +00:00
Bugfix: Crash on setting option_2 for DotCode
Bug report by Michael
This commit is contained in:
@@ -1076,7 +1076,7 @@ int dotcode(struct zint_symbol *symbol, unsigned char source[], int length) {
|
|||||||
} else {
|
} else {
|
||||||
width = symbol->option_2;
|
width = symbol->option_2;
|
||||||
|
|
||||||
height = min_dots / width;
|
height = (2 * min_dots) / width;
|
||||||
|
|
||||||
if (!((width + height) % 2)) {
|
if (!((width + height) % 2)) {
|
||||||
height++;
|
height++;
|
||||||
|
|||||||
Reference in New Issue
Block a user