From a65c48d1a2a69faf4390122b4646d16506e8a645 Mon Sep 17 00:00:00 2001 From: jaspervdg Date: Mon, 21 Jul 2008 14:36:55 +0000 Subject: [PATCH] Fix for a very stupid bug (by myself) in cubic_bbox... --- src/helper/geom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.30.2