From 331ec808fafbc1e77502c6fce607a6af53289704 Mon Sep 17 00:00:00 2001 From: Ralf Sternberg Date: Sun, 23 Apr 2023 19:31:48 +0200 Subject: [PATCH] Fix bug in SVG path command T #1443 The control point (`px`, `py`) is already updated in the else branch above (L271). It is then updated once again which causes bug #1443. This commit removes these duplicated lines which fixes the bug. --- src/api/svgPath.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/api/svgPath.ts b/src/api/svgPath.ts index de0e91a56..cd8e8f9b0 100644 --- a/src/api/svgPath.ts +++ b/src/api/svgPath.ts @@ -273,8 +273,6 @@ const runners: CmdToOperatorsMap = { } const cmd = appendQuadraticCurve(px, py, a[0], a[1]); - px = cx - (px - cx); - py = cy - (py - cy); cx = a[0]; cy = a[1]; return cmd;