svg_loader: race condition on arc processing

Unneeded static keyword in _pathAppendArcTo function led to race
conditioning
@issue: #604
This commit is contained in:
Michal Maciola 2021-07-13 14:28:52 +02:00 committed by Hermet Park
parent 233045f796
commit 8e1d8b0cb2

View file

@ -207,7 +207,7 @@ void _pathAppendArcTo(Array<PathCommand>* cmds, Array<Point>* pts, Point* cur, P
float theta2 = theta1 + delta;
float cosTheta2 = cos(theta2);
float sinTheta2 = sin(theta2);
static Point p[3];
Point p[3];
//First control point (based on start point sx,sy)
c1x = sx - bcp * (cosPhiRx * sinTheta1 + sinPhiRy * cosTheta1);