@@ -101,17 +101,17 @@ private Shape makePoly(int xPoints[], int yPoints[], int nPoints, boolean close) { GeneralPath gp = new GeneralPath(GeneralPath.WIND_EVEN_ODD); if (nPoints > 0) { gp.moveTo(xPoints[0], yPoints[0]); - } for (int i = 1; i < nPoints; i++) { gp.lineTo(xPoints[i], yPoints[i]); } if (close) { gp.closePath(); } + } return gp; } public void drawPolyline(SunGraphics2D sg, int xPoints[], int yPoints[],