We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
crash for CCLabelTTF when setting dimension input height value less then the height of the font and the input width is 0
crash for CCLabelTTF when setting dimension input height value less then the height of the font and the input width is 0
Bug #2970 [Closed]
The bug is related to #2966
- Description updated (diff)
- Assignee set to samuele3hu
- Target version set to 3.0-alpha1
- Subject changed from crash for CCTTFLabel when setting dimension width less than the font height to crash for CCLabelTTF when setting dimension width less than the font height
When the input height value less then the height of perLine and the input width is 0, it will lead to set the mMaxWidth of TextProperty 0 and when createBitmap,it crash.
Another Bug, if the first word width less than designed width ,operate the divideStringWithMaxWidth function will come into endless loop.
- % Done changed from 0 to 100
Status: | Closed | |
---|---|---|
Start date: | 2013-10-12 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | android | |
Target version: | 3.0-alpha1 |
In HelloLua project, add these lines in hello.lua
after build to device it will crash, exception here: