Fix EOF bug in EMF output

Bug reported by 与 忘 <ly_xy@outlook.com>
This commit is contained in:
Robin Stuart 2019-03-14 11:02:17 +00:00
parent d96079a327
commit b3c03b4769

View File

@ -430,11 +430,11 @@ int emf_plot(struct zint_symbol *symbol) {
/* Create EOF record */
emr_eof.type = 0x0000000e; // EMR_EOF
emr_eof.size = 18; // Assuming no palette entries
emr_eof.size = 20; // Assuming no palette entries
emr_eof.n_pal_entries = 0;
emr_eof.off_pal_entries = 0;
emr_eof.size_last = emr_eof.size;
bytecount += 18;
bytecount += 20;
recordcount++;
if (symbol->symbology == BARCODE_MAXICODE) {