[gs-code-review] Fix for CET 09-28-01

Leonardo leonardo at artifex.com
Mon Mar 12 12:34:56 PDT 2007


IMO it should be committed.

Leo.

----- Original Message ----- 
From: "Alex Cherepanov" <alexcher at quadnet.net>
To: "gs-code-review" <gs-code-review at ghostscript.com>
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
> gs-code-review at ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/gs-code-review
> 



More information about the gs-code-review mailing list