Index: gm/gmmain.cpp |
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp |
index 1652e61f7c0d092378ae2ccce06177bb50861c77..ece8ff32d4888f0d26cb2768df7c4ed5d7b118e6 100644 |
--- a/gm/gmmain.cpp |
+++ b/gm/gmmain.cpp |
@@ -704,10 +704,8 @@ |
SkRect content = SkRect::MakeWH(SkIntToScalar(pageSize.width()), |
SkIntToScalar(pageSize.height())); |
initialTransform.mapRect(&content); |
- if (!content.intersect(0, 0, SkIntToScalar(pageSize.width()), |
- SkIntToScalar(pageSize.height()))) { |
- content.setEmpty(); |
- } |
+ content.intersect(0, 0, SkIntToScalar(pageSize.width()), |
+ SkIntToScalar(pageSize.height())); |
SkISize contentSize = |
SkISize::Make(SkScalarRoundToInt(content.width()), |
SkScalarRoundToInt(content.height())); |