From: jaspervdg Date: Mon, 21 Jul 2008 14:36:55 +0000 (+0000) Subject: Fix for a very stupid bug (by myself) in cubic_bbox... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a65c48d1a2a69faf4390122b4646d16506e8a645;p=inkscape.git Fix for a very stupid bug (by myself) in cubic_bbox... --- 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))