diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pointarray.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pointarray.js b/src/pointarray.js index fa87c4b..58166a3 100644 --- a/src/pointarray.js +++ b/src/pointarray.js @@ -87,8 +87,8 @@ SVG.extend(SVG.PointArray, { // recalculate position of all points according to new size for (i = this.value.length - 1; i >= 0; i--) { - this.value[i][0] = ((this.value[i][0] - box.x) * width) / box.width + box.x - this.value[i][1] = ((this.value[i][1] - box.y) * height) / box.height + box.y + if(box.width) this.value[i][0] = ((this.value[i][0] - box.x) * width) / box.width + box.x + if(box.height) this.value[i][1] = ((this.value[i][1] - box.y) * height) / box.height + box.y } return this |