From a7ff8451656d97e8c379b0436c40fd1f1194f6fd Mon Sep 17 00:00:00 2001 From: by12 Date: Tue, 14 Mar 2017 21:42:07 +0100 Subject: [PATCH] Update path.class.js (#3774) --- src/shapes/path.class.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shapes/path.class.js b/src/shapes/path.class.js index f1c0e7c8..28fa43da 100644 --- a/src/shapes/path.class.js +++ b/src/shapes/path.class.js @@ -684,8 +684,6 @@ break; case 'C': // bezierCurveTo, absolute - x = current[5]; - y = current[6]; controlX = current[3]; controlY = current[4]; bounds = fabric.util.getBoundsOfCurve(x, y, @@ -693,9 +691,11 @@ current[2], controlX, controlY, - x, - y + current[5], + current[6] ); + x = current[5]; + y = current[6]; break; case 's': // shorthand cubic bezierCurveTo, relative