mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-20 10:15:10 -04:00
"Fix stdout handling for png output", 2012-08-06 from fdb8b4e30e
This commit is contained in:
parent
3aa27d3ccb
commit
a31e562fd4
1 changed files with 5 additions and 1 deletions
|
@ -307,7 +307,11 @@ int png_pixel_plot(struct zint_symbol *symbol, int image_height, int image_width
|
||||||
|
|
||||||
/* make sure we have disengaged */
|
/* make sure we have disengaged */
|
||||||
if (png_ptr && info_ptr) png_destroy_write_struct(&png_ptr, &info_ptr);
|
if (png_ptr && info_ptr) png_destroy_write_struct(&png_ptr, &info_ptr);
|
||||||
fclose(wpng_info.outfile);
|
if(symbol->output_options & BARCODE_STDOUT) {
|
||||||
|
fflush(wpng_info.outfile);
|
||||||
|
} else {
|
||||||
|
fclose(wpng_info.outfile);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* NO_PNG */
|
#endif /* NO_PNG */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue