Parameter is not valid in graphicsPath.AddPolygon

Topics: Bugs, Windows Forms
May 23, 2013 at 7:51 PM
Hi ,I recently downloaded the latest release,in before this release every things was fine
but now after i put first marker to create polygon i get Parameter is not valid error in GMapPolygon class
  internal void UpdateGraphicsPath()
      {
          if (graphicsPath == null)
          {
              graphicsPath = new GraphicsPath();
          }
          else
          {
              graphicsPath.Reset();
          }

          {
              Point[] pnts = new Point[LocalPoints.Count];
              for (int i = 0; i < LocalPoints.Count; i++)
              {
                  Point p2 = new Point((int)LocalPoints[i].X, (int)LocalPoints[i].Y);
                  pnts[pnts.Length - 1 - i] = p2;
              }

              if (pnts.Length > 0)
              {
 __ _                graphicsPath.AddPolygon(pnts);
___              }
          }
      }
thanks in advance
May 24, 2013 at 3:58 PM
fixed