Commit 39f14b68 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

wineps: Don't write a PostScript trailer if we haven't written a header.

parent c8fcf420
......@@ -528,7 +528,9 @@ INT PSDRV_EndDoc( PHYSDEV dev )
WARN("Somebody forgot an EndPage\n");
PSDRV_EndPage( dev );
}
PSDRV_WriteFooter( dev );
if (physDev->job.PageNo)
PSDRV_WriteFooter( dev );
ret = EndDocPrinter(physDev->job.hprinter);
ClosePrinter(physDev->job.hprinter);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment