diff options
Diffstat (limited to 'src/2geom/sbasis-roots.cpp')
| -rw-r--r-- | src/2geom/sbasis-roots.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/2geom/sbasis-roots.cpp b/src/2geom/sbasis-roots.cpp index c4ef3c16d..52d3ef6a9 100644 --- a/src/2geom/sbasis-roots.cpp +++ b/src/2geom/sbasis-roots.cpp @@ -332,10 +332,8 @@ void subdiv_sbasis(SBasis const & s, std::vector<double> roots(SBasis const & s) { if(s.size() == 0) return std::vector<double>(); - std::vector<double> b = sbasis_to_bezier(s), r; - find_bernstein_roots(&b[0], b.size()-1, r, 0, 0., 1.); - return r; + return sbasis_to_bezier(s).roots(); } }; |
