summaryrefslogtreecommitdiffstats
path: root/src/helper/geom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/geom.cpp')
-rw-r--r--src/helper/geom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/geom.cpp b/src/helper/geom.cpp
index 2af044f4a..f94881e0c 100644
--- a/src/helper/geom.cpp
+++ b/src/helper/geom.cpp
@@ -45,7 +45,7 @@ cubic_bbox (Geom::Coord x000, Geom::Coord y000, Geom::Coord x001, Geom::Coord y0
// So, if it also contains (x001,y001) and (x011,y011) we don't have to compute anything else!
// Note that we compute it for the X and Y range separately to make it easier to use them below
bool containsXrange = bbox[0].contains(x001) && bbox[0].contains(x011);
- bool containsYrange = bbox[0].contains(y001) && bbox[0].contains(y011);
+ bool containsYrange = bbox[1].contains(y001) && bbox[1].contains(y011);
/*
* xttt = s * (s * (s * x000 + t * x001) + t * (s * x001 + t * x011)) + t * (s * (s * x001 + t * x011) + t * (s * x011 + t * x111))