ckteebe / CustomBadge

CustomBadge is an Objective-C based component to create customized Badges for any given View.
http://saschapaulus.de/opensource
MIT License
397 stars 134 forks source link

CustomBadge crashes when used in FXBlurView #10

Open paul-piro opened 10 years ago

paul-piro commented 10 years ago

i get this error when used with FXBlurView in iOS 7

Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CGPathAddArc(CGMutablePathRef, const CGAffineTransform *, CGFloat, CGFloat, CGFloat, CGFloat, CGFloat, bool), file Paths/CGPath.cc, line 279.

so i added the following condition in drawRoundedWithContext if(rect.size.width > 0 && rect.size.height > 0) { }

only then we allow the code to be executed else the app will crash