rpms/ghostscript/F-8 ghostscript-r8591.patch, NONE, 1.1 ghostscript.spec, 1.159, 1.160

Tim Waugh (twaugh) fedora-extras-commits at redhat.com
Mon Jun 23 12:02:58 UTC 2008


Author: twaugh

Update of /cvs/pkgs/rpms/ghostscript/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24825

Modified Files:
	ghostscript.spec 
Added Files:
	ghostscript-r8591.patch 
Log Message:
* Mon Jun 23 2008 Tim Waugh <twaugh at redhat.com>
- Applied patch from upstream to fix box_fill_path for shfill (bug #452348).


ghostscript-r8591.patch:

--- NEW FILE ghostscript-r8591.patch ---
diff -up ghostscript-8.62/src/gdevbbox.c.r8591 ghostscript-8.62/src/gdevbbox.c
--- ghostscript-8.62/src/gdevbbox.c.r8591	2007-09-25 14:31:24.000000000 +0100
+++ ghostscript-8.62/src/gdevbbox.c	2008-06-23 12:56:33.000000000 +0100
@@ -755,7 +755,21 @@ bbox_fill_path(gx_device * dev, const gs
 	 dev_proc(tdev, fill_path));
     int code;
 
-    if (!GX_DC_IS_TRANSPARENT(pdevc, bdev) && !gx_path_is_void(ppath)) {
+    if (ppath == NULL) {
+	/* A special handling of shfill with no path. */
+	gs_fixed_rect ibox;
+	gs_fixed_point adjust;
+
+	if (pcpath == NULL)
+	    return 0;
+	gx_cpath_inner_box(pcpath, &ibox);
+	adjust = params->adjust;
+	if (params->fill_zero_width)
+	    gx_adjust_if_empty(&ibox, &adjust);
+	adjust_box(&ibox, adjust);
+	BBOX_ADD_RECT(bdev, ibox.p.x, ibox.p.y, ibox.q.x, ibox.q.y);
+	return 0;
+    } else if (!GX_DC_IS_TRANSPARENT(pdevc, bdev) && !gx_path_is_void(ppath)) {
 	gs_fixed_rect ibox;
 	gs_fixed_point adjust;
 


Index: ghostscript.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ghostscript/F-8/ghostscript.spec,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -r1.159 -r1.160
--- ghostscript.spec	31 Mar 2008 16:42:40 -0000	1.159
+++ ghostscript.spec	23 Jun 2008 12:02:14 -0000	1.160
@@ -21,6 +21,7 @@
 Patch5: ghostscript-runlibfileifexists.patch
 Patch6: ghostscript-system-jasper.patch
 Patch7: ghostscript-pksmraw.patch
+Patch8: ghostscript-r8591.patch
 
 Requires: urw-fonts >= 1.1, ghostscript-fonts
 BuildRequires: libjpeg-devel, libXt-devel
@@ -96,6 +97,9 @@
 # Fix pksmraw output (bug #308211).
 %patch7 -p1 -b .pksmraw
 
+# Applied patch from upstream to fix box_fill_path for shfill (bug #452348).
+%patch8 -p1 -b .r8591
+
 # Convert manual pages to UTF-8
 from8859_1() {
 	iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
@@ -270,6 +274,9 @@
 %{_libdir}/libgs.so
 
 %changelog
+* Mon Jun 23 2008 Tim Waugh <twaugh at redhat.com>
+- Applied patch from upstream to fix box_fill_path for shfill (bug #452348).
+
 * Mon Mar 31 2008 Tim Waugh <twaugh at redhat.com> 8.62-3
 - Fix pksmraw output (bug #308211).
 




More information about the fedora-extras-commits mailing list