SvgLoader: Fixing issues with a A/a command
authorMira Grudzinska <m.grudzinska@samsung.com>
Thu, 10 Sep 2020 11:48:06 +0000 (13:48 +0200)
committerHermet Park <chuneon.park@samsung.com>
Mon, 14 Sep 2020 05:07:02 +0000 (14:07 +0900)
Cmd 'A' from an svg path should not be connected with any other commands via the control points.

Change-Id: I3ef798693660263f16a74d9f068b341f78ecee6e

src/loaders/svg/tvgSvgPath.cpp

index 84850ea..2e3edab 100644 (file)
@@ -437,7 +437,8 @@ static void _processCommand(vector<PathCommand>* cmds, vector<Point>* pts, char
         case 'a':
         case 'A': {
             _pathAppendArcTo(cmds, pts, cur, curCtl, arr[5], arr[6], arr[0], arr[1], arr[2], arr[3], arr[4]);
-            *cur = {arr[5] ,arr[6]};
+            *cur = *curCtl = {arr[5] ,arr[6]};
+            *isQuadratic = false;
             break;
         }
         default: {