Index: src/core/SkPath.cpp |
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp |
index d1e4d79179003a66c02cbbac0c5d49363f2d4194..875be9801e4d2910c2a757652abbb1c4a32395d3 100644 |
--- a/src/core/SkPath.cpp |
+++ b/src/core/SkPath.cpp |
@@ -380,11 +380,11 @@ bool SkPath::isEmpty() const { |
bool SkPath::isLine(SkPoint line[2]) const { |
int verbCount = fPathRef->countVerbs(); |
- int ptCount = fPathRef->countVerbs(); |
- if (2 == verbCount && 2 == ptCount) { |
- if (kMove_Verb == fPathRef->atVerb(0) && |
- kLine_Verb == fPathRef->atVerb(1)) { |
+ if (2 == verbCount) { |
+ SkASSERT(kMove_Verb == fPathRef->atVerb(0)); |
+ if (kLine_Verb == fPathRef->atVerb(1)) { |
+ SkASSERT(2 == fPathRef->countPoints()); |
if (line) { |
const SkPoint* pts = fPathRef->points(); |
line[0] = pts[0]; |