[gs-commits] rev 10991 - trunk/gs/base
robin at ghostscript.com
robin at ghostscript.com
Tue Mar 30 18:40:34 UTC 2010
Author: robin
Date: 2010-03-30 18:40:34 +0000 (Tue, 30 Mar 2010)
New Revision: 10991
Modified:
trunk/gs/base/gxline.h
Log:
Fix bug 691132 by ensuring that whenever we set a line width, we set
it to the absolute value of the line width. This seems consistent with
PDF, and cures the clipping problem in PCL referred to by the bug.
No expected differences.
Modified: trunk/gs/base/gxline.h
===================================================================
--- trunk/gs/base/gxline.h 2010-03-30 14:46:56 UTC (rev 10990)
+++ trunk/gs/base/gxline.h 2010-03-30 18:40:34 UTC (rev 10991)
@@ -1,6 +1,6 @@
/* Copyright (C) 2001-2006 Artifex Software, Inc.
All Rights Reserved.
-
+
This software is provided AS-IS with no warranty, either express or
implied.
@@ -17,6 +17,7 @@
#ifndef gxline_INCLUDED
# define gxline_INCLUDED
+#include "math_.h"
#include "gslparam.h"
#include "gsmatrix.h"
@@ -55,7 +56,7 @@
} gx_line_params;
#define gx_set_line_width(plp, wid)\
- ((plp)->half_width = (wid) / 2)
+ ((plp)->half_width = fabs(wid) / 2)
#define gx_current_line_width(plp)\
((plp)->half_width * 2)
int gx_set_miter_limit(gx_line_params *, floatp);
More information about the gs-commits
mailing list