Index: src/core/SkStroke.cpp |
diff --git a/src/core/SkStroke.cpp b/src/core/SkStroke.cpp |
index c562c2e433fc62c99666aa6e69d3f28757bf2071..f8173c0555ade651cbf15c501f7c33253fc7ce8e 100644 |
--- a/src/core/SkStroke.cpp |
+++ b/src/core/SkStroke.cpp |
@@ -1414,10 +1414,11 @@ void SkStroke::strokePath(const SkPath& src, SkPath* dst) const { |
// If src is really a rect, call our specialty strokeRect() method |
{ |
+ SkRect rect; |
bool isClosed; |
SkPath::Direction dir; |
- if (src.isRect(&isClosed, &dir) && isClosed) { |
- this->strokeRect(src.getBounds(), dst, dir); |
+ if (src.isRect(&rect, &isClosed, &dir) && isClosed) { |
+ this->strokeRect(rect, dst, dir); |
// our answer should preserve the inverseness of the src |
if (src.isInverseFillType()) { |
SkASSERT(!dst->isInverseFillType()); |