mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-19 09:45:21 -04:00
Remove border and box bug in PNG
Minor typo means that barcode binding and boxing doesn't work.
This commit is contained in:
parent
89b11d491b
commit
a10c11a379
1 changed files with 6 additions and 5 deletions
|
@ -742,7 +742,7 @@ int png_plot(struct zint_symbol *symbol, int rotate_angle, int data_type)
|
||||||
comp_offset = 0;
|
comp_offset = 0;
|
||||||
addon_text_posn = 0.0;
|
addon_text_posn = 0.0;
|
||||||
row_height = 0;
|
row_height = 0;
|
||||||
if(symbol->output_options &= SMALL_TEXT) {
|
if(symbol->output_options & SMALL_TEXT) {
|
||||||
smalltext = 1;
|
smalltext = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1123,6 +1123,7 @@ int png_handle(struct zint_symbol *symbol, int rotate_angle)
|
||||||
if(symbol->symbology == BARCODE_MAXICODE) {
|
if(symbol->symbology == BARCODE_MAXICODE) {
|
||||||
error = maxi_png_plot(symbol, rotate_angle, PNG_DATA);
|
error = maxi_png_plot(symbol, rotate_angle, PNG_DATA);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
error = png_plot(symbol, rotate_angle, PNG_DATA);
|
error = png_plot(symbol, rotate_angle, PNG_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue