Skip to content
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

a bug in cocos/2d/CCLabelTTF.cpp #8394

Closed
minggo opened this issue Sep 30, 2014 · 1 comment
Closed

a bug in cocos/2d/CCLabelTTF.cpp #8394

minggo opened this issue Sep 30, 2014 · 1 comment

Comments

@minggo
Copy link
Contributor

minggo commented Sep 30, 2014

Note

This issue is migrated from here. It was created at 2014/04/01 13:37:17 +0000

Description

std::string LabelTTF::getDescription() const
{
    return StringUtils::format("<LabelTTF | FontName = %s, FontSize = %.1f, Label = '%s'>", _renderLabel->getFontName().c_str(), (float)_renderLabel->getFontSize(), _renderLabel->getString().c_str());
}

a (float) should be placed before _renderLabel->getFontSize(), otherwise it will crash.

@WenhaiLin
Copy link
Contributor

@minggo It's work normal now.We can close this issue.

@minggo minggo closed this as completed Oct 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants