We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Wild pointer in CCControlButton::setBackgroundSpriteForState
Wild pointer in CCControlButton::setBackgroundSpriteForState
Bug #2678 [Rejected]
Status: | Rejected | |
---|---|---|
Start date: | 2013-08-22 | |
Priority: | Normal | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | all | |
Target version: | - |
(maxwzg opened this issue 11 months ago in github)
CCControlButton::setBackgroundSpriteForState maybe need add a line:
if (getState() state)
{
m_backgroundSprite = sprite; // if current state state, m_backgroundSpriteDispatchTable have updated to new sprite, but m_backgroundSprite still equal old sprite
needsLayout();
}