[gs-code-review] Fix for CET 09-28-01
Alex Cherepanov
alexcher at quadnet.net
Sun Mar 11 17:12:36 PDT 2007
Reset the dashed line array at initgraphics. Fix CET 09-28-01.
DIFFERENCES:
There's no other Comparefiles or CET differences.
DETAILS:
pscet_status.txt marks this case as DIFF, but current version of
Ghostscript matches Tek checksum. Both Tek and Ghostscript forget to
reset the dash array at initgraphics and generate the same incorrect
checksum. This bug is fixed in CPSI-based PhotoPrint but redefinition
of halftone operators affect the PhotoPrint checksum, which doesn't
match anything else. With the proposed patch Ghostscript matches
Distiller 5, that does everything right.
-------------- next part --------------
Index: gs/src/zgstate.c
===================================================================
--- gs/src/zgstate.c (revision 7760)
+++ gs/src/zgstate.c (working copy)
@@ -174,7 +174,8 @@
* gs_initigraphics does not reset the colorspace;
* this is now handled in the PostScript code.
*/
- return gs_initgraphics(igs);
+ make_empty_array(&istate->dash_pattern_array, a_all);
+ return gs_initgraphics(igs);
}
/* ------ Operations on graphics state elements ------ */
More information about the gs-code-review
mailing list