summaryrefslogtreecommitdiffstats
path: root/src/2geom/path-intersection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom/path-intersection.cpp')
-rw-r--r--src/2geom/path-intersection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/2geom/path-intersection.cpp b/src/2geom/path-intersection.cpp
index c38776304..c680f3a31 100644
--- a/src/2geom/path-intersection.cpp
+++ b/src/2geom/path-intersection.cpp
@@ -460,8 +460,8 @@ void mono_pair(Path const &A, double Al, double Ah,
/** This returns the times when the x or y derivative is 0 in the curve. */
std::vector<double> curve_mono_splits(Curve const &d) {
Curve* deriv = d.derivative();
- std::vector<double> rs = d.roots(0, X);
- append(rs, d.roots(0, Y));
+ std::vector<double> rs = deriv->roots(0, X);
+ append(rs, deriv->roots(0, Y));
delete deriv;
std::sort(rs.begin(), rs.end());
return rs;