[gs-commits] rev 12336 - trunk/ghostpdl/pcl
henrys at ghostscript.com
henrys at ghostscript.com
Thu Mar 31 17:22:23 UTC 2011
Author: henrys
Date: 2011-03-31 17:22:23 +0000 (Thu, 31 Mar 2011)
New Revision: 12336
Modified:
trunk/ghostpdl/pcl/pgconfig.c
Log:
Fixes 692109, the "no argument case" of the HPGL/2 INPUT RELATIVE
command did not properly initialized the operands to their defaults.
Only likely to be seen in unusual test cases. Fixes indeterminacy
in CET 32-07.BIN reported in the regression tests.
Modified: trunk/ghostpdl/pcl/pgconfig.c
===================================================================
--- trunk/ghostpdl/pcl/pgconfig.c 2011-03-31 15:36:32 UTC (rev 12335)
+++ trunk/ghostpdl/pcl/pgconfig.c 2011-03-31 17:22:23 UTC (rev 12336)
@@ -398,12 +398,13 @@
/* get the PCL picture frame coordinates */
hpgl_call(hpgl_picture_frame_coords(pgls, &win));
hpgl_args_setup(&args);
+ if ( i != 0 )
+ {
hpgl_args_add_int(&args, win.p.x + (win.q.x - win.p.x) *
rptxy[0] / 100.0);
-
hpgl_args_add_int(&args, win.p.y + (win.q.y - win.p.y) *
rptxy[1] / 100.0);
-
+ }
if ( i == 4 )
{
hpgl_args_add_int(&args, win.p.x + (win.q.x - win.p.x) *
More information about the gs-commits
mailing list