diff --git a/src/components/fabric/QPolygon.js b/src/components/fabric/QPolygon.js index 4b15d687..396ae6af 100644 --- a/src/components/fabric/QPolygon.js +++ b/src/components/fabric/QPolygon.js @@ -186,7 +186,7 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, { this.lines = [] this.getCurrentPoints().forEach((point, i) => { - const nextPoint = this.points[(i + 1) % this.points.length] + const nextPoint = this.getCurrentPoints()[(i + 1) % this.points.length] const line = new QLine([point.x, point.y, nextPoint.x, nextPoint.y], { stroke: this.stroke, strokeWidth: this.strokeWidth,