-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash Issue in _expand function for using only one AwsomeMenu item #48
Comments
Is anybody there who can explain this to me? |
It happens to me too. I realized that happens when I´ve got only one menuitem. I quick solve this with:
In method _setMenu in AwesomeMenu.m It´s not a valid solution, you must hardcode a good values for your porpouses, or even better, a generalistic solution. |
Well yes I hardcoded the values for a single menu item in the end. Anyway On Wed, Jan 22, 2014 at 3:25 PM, dbayon [email protected] wrote:
Regards -- |
Mate, it is still happening. Would you please fix this? |
I debugged, and found that it crashes because the dividend (count-1) is 0. I printed endPoint nearPoint and farPoint are all (x = NaN, y = NaN). When the program uses endPoint.x, It crashes finally. I fix it with:
I guarantee the dividend is not 0 but 1 if there is only 1 menu item. Sorry for my poor english. |
Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CGPathAddLineToPoint(CGMutablePathRef, const CGAffineTransform *, CGFloat, CGFloat), file Paths/CGPath.cc
The text was updated successfully, but these errors were encountered: