mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Plot hexagons in Maxicode even when scale < 1.0
Fixes #119 reported by codemonkey82
This commit is contained in:
parent
a6c93f1989
commit
32b6bbaf0e
@ -504,7 +504,7 @@ int plot_raster_maxicode(struct zint_symbol *symbol, int rotate_angle, int data_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hexagon_size = (int)scaler * 10;
|
hexagon_size = (int)(scaler * 10);
|
||||||
|
|
||||||
if (!(scaled_hexagon = (char *) malloc(hexagon_size * hexagon_size))) {
|
if (!(scaled_hexagon = (char *) malloc(hexagon_size * hexagon_size))) {
|
||||||
strcpy(symbol->errtxt, "656: Insufficient memory for pixel buffer");
|
strcpy(symbol->errtxt, "656: Insufficient memory for pixel buffer");
|
||||||
|
Loading…
Reference in New Issue
Block a user