Permalink
Browse files

fix: when the points is empty, return. Closed #316.

  • Loading branch information...
simaQ committed Sep 11, 2018
1 parent 95fa70e commit 82d5c2c768c80d7356fe72b7408713eb5992e453
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/graphic/shape/polyline.js
@@ -32,6 +32,8 @@ class Polyline extends Shape {
}
}
if (!filteredPoints.length) return;
context.beginPath();
context.moveTo(filteredPoints[0].x, filteredPoints[0].y);
if (smooth) {

0 comments on commit 82d5c2c

Please sign in to comment.