David's final changes: more profiler features, fixes.
[ipdf/code.git] / src / bezier.cpp
index 88d9c1c..83db943 100644 (file)
@@ -96,16 +96,13 @@ vector<BReal> SolveCubic(const BReal & a, const BReal & b, const BReal & c, cons
        //Debug("%u turning points", turns.size());
        for (unsigned i = 1; i < turns.size(); ++i)
        {
-               if (tl > max) break;
-               tu = std::min(turns[i],tu);
+               //if (tl > max) break;
+               tu = turns[i];
                CubicSolveSegment(roots, a, b, c, d, tl, tu,delta);
                tl = turns[i];
        }
-       if (tu < max)
-       {
-               tu = max;
-               CubicSolveSegment(roots, a, b, c, d, tl, tu,delta);
-       }
+       tu = max;
+       CubicSolveSegment(roots, a, b, c, d, tl, tu,delta);
        return roots;
 }
 

UCC git Repository :: git.ucc.asn.au