diff options
Diffstat (limited to 'include/effects/SkCornerPathEffect.h')
-rw-r--r-- | include/effects/SkCornerPathEffect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/effects/SkCornerPathEffect.h b/include/effects/SkCornerPathEffect.h index f7a5e46222..ac9401a7bc 100644 --- a/include/effects/SkCornerPathEffect.h +++ b/include/effects/SkCornerPathEffect.h @@ -21,7 +21,7 @@ public: that should be "rounded". */ static sk_sp<SkPathEffect> Make(SkScalar radius) { - return sk_sp<SkPathEffect>(new SkCornerPathEffect(radius)); + return radius > 0 ? sk_sp<SkPathEffect>(new SkCornerPathEffect(radius)) : nullptr; } virtual bool filterPath(SkPath* dst, const SkPath& src, |