Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: src/core/SkRRect.cpp

Issue 223213005: Fix SkRRect isEmpty assert (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRRect.cpp
diff --git a/src/core/SkRRect.cpp b/src/core/SkRRect.cpp
index 082646c2a76594c4a33e47fa7b759ef3308634c1..27104c5fd548037cbcdaca7494b44867d45913fe 100644
--- a/src/core/SkRRect.cpp
+++ b/src/core/SkRRect.cpp
@@ -464,8 +464,7 @@ void SkRRect::validate() const {
SkASSERT(fRect.isEmpty());
SkASSERT(allRadiiZero && allRadiiSame && allCornersSquare);
robertphillips 2014/04/03 12:35:55 I don't think this is required at all. The precedi
- SkASSERT(0 == fRect.fLeft && 0 == fRect.fTop &&
- 0 == fRect.fRight && 0 == fRect.fBottom);
+ SkASSERT(fRect.fLeft == fRect.fRight && fRect.fTop == fRect.fBottom);
break;
case kRect_Type:
SkASSERT(!fRect.isEmpty());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698