summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/2geom/solve-bezier.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/2geom/solve-bezier.cpp b/src/2geom/solve-bezier.cpp
index b7c01b1f7..0a9f0e310 100644
--- a/src/2geom/solve-bezier.cpp
+++ b/src/2geom/solve-bezier.cpp
@@ -142,6 +142,10 @@ Bezier::find_bezier_roots(std::vector<double> &solutions,
//convex_hull_marching(bz, bz, solutions, left_t, right_t);
//return;
+ //A constant bezier, even if identically zero, has no roots
+ if (bz.isConstant())
+ return;
+
while(bz[0] == 0) {
debug(std::cout << "deflate\n");
bz = bz.deflate();