diff options
Diffstat (limited to 'pathops/SkReduceOrder.cpp')
-rw-r--r-- | pathops/SkReduceOrder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pathops/SkReduceOrder.cpp b/pathops/SkReduceOrder.cpp index ada52761..bb2038b4 100644 --- a/pathops/SkReduceOrder.cpp +++ b/pathops/SkReduceOrder.cpp @@ -161,8 +161,8 @@ static int check_linear(const SkDCubic& cubic, while (cubic[startIndex].approximatelyEqual(cubic[endIndex])) { --endIndex; if (endIndex == 0) { - SkDebugf("%s shouldn't get here if all four points are about equal\n", __FUNCTION__); - SkASSERT(0); + endIndex = 3; + break; } } if (!cubic.isLinear(startIndex, endIndex)) { |