Projects > cpp > Issues > Bug #2678

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Wild pointer in CCControlButton::setBackgroundSpriteForState

Bug #2678 [Rejected]
godyZ 2013-08-22 02:26 . Updated almost 3 years ago

(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();
}

WenHai 2014-01-09 02:16
  • Status changed from New to Rejected

the _backgroundSprite be updated in needsLayout method.

zhangxm 2014-01-09 06:16
  • Target version deleted (Candidate)

Atom PDF

Status:Rejected
Start date:2013-08-22
Priority:Normal
Due date:
Assignee:-
% Done:

0%

Category:all
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.