summaryrefslogtreecommitdiff
path: root/Xprint/ps/PsPolygon.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xprint/ps/PsPolygon.c')
-rw-r--r--Xprint/ps/PsPolygon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xprint/ps/PsPolygon.c b/Xprint/ps/PsPolygon.c
index d334c7778..a5b373775 100644
--- a/Xprint/ps/PsPolygon.c
+++ b/Xprint/ps/PsPolygon.c
@@ -73,7 +73,6 @@ in this Software without prior written authorization from The Open Group.
** *********************************************************
**
********************************************************************/
-/* $XFree86: xc/programs/Xserver/Xprint/ps/PsPolygon.c,v 1.6 2001/01/17 22:36:32 dawes Exp $ */
#include "Ps.h"
#include "gcstruct.h"
@@ -176,7 +175,8 @@ PsFillPolygon(
}
else
{
- pts[0].x = pPoints[0].x; pts[0].y = pPoints[0].y;
+ i = 0;
+ pts[0].x = pPoints[i].x; pts[0].y = pPoints[i].y;
for( i=1 ; i<nPoints ; i++ )
{
pts[i].x = pts[i-1].x+pPoints[i].x;