[gs-cvs] rev 7529 - in trunk/gs: doc src

alexcher at ghostscript.com alexcher at ghostscript.com
Mon Dec 25 21:29:37 PST 2006


Author: alexcher
Date: 2006-12-25 21:29:37 -0800 (Mon, 25 Dec 2006)
New Revision: 7529

Modified:
   trunk/gs/doc/pscet_status.txt
   trunk/gs/src/gsdps1.c
Log:
Calculate the old bounding box using the function that takes into account the
bounding box set by setbbox operator.

DETAILS:
This patch doesn't affect any reported bugs, CET test or regression test files.
Before the patch the following (correct) program didn't run on Ghostscript:
0 0 moveto 0 0 1000 1000 setbbox 100 100 105 105 setbbox 0 0 moveto 100 100 lineto

DIFFERENCES:
None


Modified: trunk/gs/doc/pscet_status.txt
===================================================================
--- trunk/gs/doc/pscet_status.txt	2006-12-25 18:11:49 UTC (rev 7528)
+++ trunk/gs/doc/pscet_status.txt	2006-12-26 05:29:37 UTC (rev 7529)
@@ -1884,8 +1884,13 @@
 
 11-20-8  OK	Minor differences visually reviewed by RJJ
 
-11-20-9  DIFF	'4's and '1's added in gs output assign Alex
+11-20-9  DIFF	'4's and '1's added in gs output.
+                The problem (at least partly) is caused by a small bounding box
+                set by setbbox operator that cannot accomodate long strings of text.
+                It is not clear yet how does this work on Adobe. My attempts to
+                create a small example did not succeed.  assign Alex
 
+
 11-21-1  DIFF?	Circle has small 'points' with CPSI -- Ghostscript is smooth.
                 assign: Raph.
 

Modified: trunk/gs/src/gsdps1.c
===================================================================
--- trunk/gs/src/gsdps1.c	2006-12-25 18:11:49 UTC (rev 7528)
+++ trunk/gs/src/gsdps1.c	2006-12-26 05:29:37 UTC (rev 7529)
@@ -78,7 +78,7 @@
 	(fixed) ceil(dbox.q.x * fixed_scale) + box_rounding_slop_fixed;
     bbox.q.y =
 	(fixed) ceil(dbox.q.y * fixed_scale) + box_rounding_slop_fixed;
-    if (gx_path_bbox(ppath, &obox) >= 0) {	/* Take the union of the bboxes. */
+    if (gx_path_bbox_set(ppath, &obox) >= 0) {	/* Take the union of the bboxes. */
 	ppath->bbox.p.x = min(obox.p.x, bbox.p.x);
 	ppath->bbox.p.y = min(obox.p.y, bbox.p.y);
 	ppath->bbox.q.x = max(obox.q.x, bbox.q.x);



More information about the gs-cvs mailing list