From fd30159febf794b0f6e3ba16430c11667c935942 Mon Sep 17 00:00:00 2001 From: ShaMan123 Date: Fri, 1 Apr 2022 08:02:22 +0300 Subject: [PATCH] Update polyline.class.js --- src/shapes/polyline.class.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shapes/polyline.class.js b/src/shapes/polyline.class.js index 5d0b7b85b36..fbf9301cd5b 100644 --- a/src/shapes/polyline.class.js +++ b/src/shapes/polyline.class.js @@ -83,6 +83,7 @@ }, _setPositionDimensions: function(options) { + options || (options = {}); var calcDim = this._calcDimensions(options), correctLeftTop, correctSize = this.exactBoundingBox ? this.strokeWidth : 0; this.width = calcDim.width - correctSize;