summaryrefslogtreecommitdiffstats
path: root/src/2geom
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2011-07-02 06:11:08 +0000
committerJon A. Cruz <jon@joncruz.org>2011-07-02 06:11:08 +0000
commit07c8dea2b0361314ac4bbf0e45dd4c33ce11f206 (patch)
treed5452b36543452b5e79e9c7c688c897a6b87dfe8 /src/2geom
parentcompatibility for building with clang, this failed for 2 reasons. (diff)
downloadinkscape-07c8dea2b0361314ac4bbf0e45dd4c33ce11f206.tar.gz
inkscape-07c8dea2b0361314ac4bbf0e45dd4c33ce11f206.zip
Applying patch from Campbell Barton to help building on other than gcc.
(bzr r10399)
Diffstat (limited to 'src/2geom')
-rw-r--r--src/2geom/solve-bezier-parametric.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/2geom/solve-bezier-parametric.cpp b/src/2geom/solve-bezier-parametric.cpp
index 76cf65e17..437f073a3 100644
--- a/src/2geom/solve-bezier-parametric.cpp
+++ b/src/2geom/solve-bezier-parametric.cpp
@@ -68,13 +68,13 @@ find_parametric_bezier_roots(Geom::Point const *w, /* The control points */
break;
}
- /* Otherwise, solve recursively after subdividing control polygon */
- Geom::Point Left[degree+1], /* New left and right */
- Right[degree+1]; /* control polygons */
- Bezier(w, degree, 0.5, Left, Right);
+ // Otherwise, solve recursively after subdividing control polygon
+ std::vector<Geom::Point> Left(degree + 1); // New left and right
+ std::vector<Geom::Point> Right(degree + 1); // control polygons
+ Bezier(w, degree, 0.5, &Left[0], &Right[0]);
total_subs ++;
- find_parametric_bezier_roots(Left, degree, solutions, depth+1);
- find_parametric_bezier_roots(Right, degree, solutions, depth+1);
+ find_parametric_bezier_roots(&Left[0], degree, solutions, depth + 1);
+ find_parametric_bezier_roots(&Right[0], degree, solutions, depth + 1);
}