Index: src/core/SkStroke.cpp |
diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp |
index 7d8d707752e942982ce51f01af4e7eebe256249b..b138c326bab497c96429ed1d111ff57954c8ab0d 100644 |
--- a/src/core/SkStroke.cpp |
+++ b/src/core/SkStroke.cpp |
@@ -562,9 +562,8 @@ |
SkPath::Direction dir; |
if (src.isRect(&isClosed, &dir) && isClosed) { |
this->strokeRect(src.getBounds(), dst, dir); |
- // our answer should preserve the inverseness of the src, but the |
- // rect should not be inverse-stroked. |
- if (src.isInverseFillType() && fWidth < 0) { |
+ // our answer should preserve the inverseness of the src |
+ if (src.isInverseFillType()) { |
SkASSERT(!dst->isInverseFillType()); |
dst->toggleInverseFillType(); |
} |
@@ -647,9 +646,8 @@ |
#endif |
} |
- // our answer should preserve the inverseness of the src, but the path |
- // should not be inverse-stroked. |
- if (src.isInverseFillType() && fWidth < 0) { |
+ // our answer should preserve the inverseness of the src |
+ if (src.isInverseFillType()) { |
SkASSERT(!dst->isInverseFillType()); |
dst->toggleInverseFillType(); |
} |