Index: src/pathops/SkReduceOrder.cpp |
diff --git a/src/pathops/SkReduceOrder.cpp b/src/pathops/SkReduceOrder.cpp |
index 5410d35ec98129ba69464188692e26be1fc62e34..6d2339c276f9c518b3f4a19b9db00e7911e58dba 100644 |
--- a/src/pathops/SkReduceOrder.cpp |
+++ b/src/pathops/SkReduceOrder.cpp |
@@ -437,7 +437,7 @@ SkPath::Verb SkReduceOrder::Quad(const SkPoint a[3], SkTDArray<SkPoint>* reduceP |
pt->fY = SkDoubleToScalar(reducer.fLine[index].fY); |
} |
} |
- return (SkPath::Verb) (order - 1); |
+ return SkPathOpsPointsToVerb(order - 1); |
} |
SkPath::Verb SkReduceOrder::Cubic(const SkPoint a[4], SkTDArray<SkPoint>* reducePts) { |
@@ -452,5 +452,5 @@ SkPath::Verb SkReduceOrder::Cubic(const SkPoint a[4], SkTDArray<SkPoint>* reduce |
pt->fY = SkDoubleToScalar(reducer.fQuad[index].fY); |
} |
} |
- return (SkPath::Verb) (order - 1); |
+ return SkPathOpsPointsToVerb(order - 1); |
} |