Skip to content

Commit

Permalink
Merge pull request #147 from yaokaige/develop
Browse files Browse the repository at this point in the history
Fix Xcode7 compile error
  • Loading branch information
rhcad committed Sep 29, 2015
2 parents 55b9046 + 1ec919b commit 2def9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Inkpad-Core/SVG/WDSVGPathParser.m
Expand Up @@ -121,7 +121,7 @@ BOOL decomposeArcToCubic(CGMutablePathRef path, float angle, float rx, float ry,

// Some results of atan2 on some platform implementations are not exact enough. So that we get more
// cubic curves than expected here. Adding 0.001f reduces the count of segments to the correct count.
int segments = ceilf(fabsf(thetaArc / (M_PI_2 + 0.001f)));
int segments = ceilf(fabs(thetaArc / (M_PI_2 + 0.001f)));
for (int i = 0; i < segments; ++i) {
float startTheta = theta1 + i * thetaArc / segments;
float endTheta = theta1 + (i + 1) * thetaArc / segments;
Expand Down

0 comments on commit 2def9e4

Please sign in to comment.