Index: src/effects/SkOffsetImageFilter.cpp |
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp |
index 6322a5a9b3c80f8e221f2208ea78a230d1be7e87..12c5af66495db5ec3a62706abd8ab3eed54c7fbe 100644 |
--- a/src/effects/SkOffsetImageFilter.cpp |
+++ b/src/effects/SkOffsetImageFilter.cpp |
@@ -84,9 +84,10 @@ bool SkOffsetImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm |
SkVector vec; |
ctm.mapVectors(&vec, &fOffset, 1); |
- *dst = src; |
- dst->offset(-SkScalarCeilToInt(vec.fX), -SkScalarCeilToInt(vec.fY)); |
- dst->join(src); |
+ SkIRect bounds = src; |
+ bounds.offset(-SkScalarCeilToInt(vec.fX), -SkScalarCeilToInt(vec.fY)); |
+ bounds.join(src); |
+ *dst = bounds; |
return true; |
} |