[gs-cvs] gs/src

Igor Melichev igor at ghostscript.com
Wed Jul 13 03:37:12 PDT 2005


Update of /cvs/ghostscript/gs/src
In directory casper2:/tmp/cvs-serv26799/gs/src

Modified Files:
	gdevpdf.c 
Log Message:
Fix (ps2write) : EOT marker was missed.

DETAILS :

Bug 688186 "ps2write: EOT is missing".
The old code writes it after the file is closed.

EXPECTED DIFFERENCES :

None.


Index: gdevpdf.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpdf.c,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -d -r1.113 -r1.114
--- gdevpdf.c	7 Jun 2005 18:33:56 -0000	1.113
+++ gdevpdf.c	13 Jul 2005 10:37:10 -0000	1.114
@@ -1225,6 +1225,8 @@
     pdev->pages = 0;
     pdev->num_pages = 0;
 
+    if (pdev->ForOPDFRead && pdev->OPDFReadProcsetPath.size)
+	stream_putc(s, 0x04);
     code1 = gdev_vector_close_file((gx_device_vector *) pdev);
     if (code >= 0)
 	code = code1;
@@ -1238,7 +1240,5 @@
 	    code = gs_note_error(gs_error_rangecheck);
 #endif
     }
-    if (pdev->ForOPDFRead && pdev->OPDFReadProcsetPath.size)
-	stream_putc(s, 0x04);
     return pdf_close_files(pdev, code);
 }



More information about the gs-cvs mailing list