mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 03:54:25 +00:00
svg_loader: race condition on arc processing
Unneeded static keyword in _pathAppendArcTo function led to race conditioning @issue: #604
This commit is contained in:
parent
233045f796
commit
8e1d8b0cb2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue