mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-26 08:09:14 +00:00
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:
parent
fa26aa7e7b
commit
b8138d56c0
1 changed files with 2 additions and 1 deletions
|
@ -437,7 +437,8 @@ static void _processCommand(vector<PathCommand>* cmds, vector<Point>* pts, char
|
||||||
case 'a':
|
case 'a':
|
||||||
case 'A': {
|
case 'A': {
|
||||||
_pathAppendArcTo(cmds, pts, cur, curCtl, arr[5], arr[6], arr[0], arr[1], arr[2], arr[3], arr[4]);
|
_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;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue