Re: Fix for CET 09-28-01
"Leonardo" <[email protected]> Mon, 12 Mar 2007 22:34:56 +0300
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Message-ID | <[email protected]> |
IMO it should be committed. Leo. ----- Original Message ----- From: "Alex Cherepanov" <[email protected]> To: "gs-code-review" <[email protected]> Sent: Monday, March 12, 2007 3:12 AM Subject: [gs-code-review] Fix for CET 09-28-01 > 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. > > -------------------------------------------------------------------------------- > 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 ------ */ > -------------------------------------------------------------------------------- > _______________________________________________ > gs-code-review mailing list > [email protected] > http://www.ghostscript.com/mailman/listinfo/gs-code-review >