mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1294969 - Path flattening should not skip the first inflection point if it is at t=0.0. r=Bas
This commit is contained in:
parent
b17713a4cb
commit
7eadba0012
@ -457,7 +457,7 @@ FlattenBezier(const BezierControlPoints &aControlPoints,
|
||||
FindInflectionPoints(aControlPoints, &t1, &t2, &count);
|
||||
|
||||
// Check that at least one of the inflection points is inside [0..1]
|
||||
if (count == 0 || ((t1 <= 0.0 || t1 >= 1.0) && (count == 1 || (t2 <= 0.0 || t2 >= 1.0))) ) {
|
||||
if (count == 0 || ((t1 < 0.0 || t1 >= 1.0) && (count == 1 || (t2 < 0.0 || t2 >= 1.0))) ) {
|
||||
FlattenBezierCurveSegment(aControlPoints, aSink, aTolerance);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user