SvgLoader: Fixing issues with a A/a command

Cmd 'A' from an svg path should not be connected with any other commands via the control points.
This commit is contained in:
Mira Grudzinska 2020-09-10 13:48:06 +02:00 committed by JunsuChoi
parent fa26aa7e7b
commit b8138d56c0

View 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: {