update uiTextBMFont setString

This commit is contained in:
Liam 2015-01-20 14:20:20 +08:00
parent 118b74e95c
commit 81f3995cc1
1 changed files with 1 additions and 1 deletions

View File

@ -100,11 +100,11 @@ void TextBMFont::setString(const std::string& value)
return;
}
_stringValue = value;
_labelBMFontRenderer->setString(value);
if (!_fntFileHasInit)
{
return;
}
_labelBMFontRenderer->setString(value);
updateContentSizeWithTextureSize(_labelBMFontRenderer->getContentSize());
_labelBMFontRendererAdaptDirty = true;
}