Fixed compile error

This commit is contained in:
WenhaiLin 2015-07-14 13:47:35 +08:00
parent 964713355b
commit b701fd9e73
1 changed files with 2 additions and 2 deletions

View File

@ -908,7 +908,7 @@ void Label::enableShadow(const Color4B& shadowColor /* = Color4B::BLACK */,const
if (!_systemFontDirty && !_contentDirty && _textSprite)
{
auto& fontDef = _getFontDefinition();
auto fontDef = _getFontDefinition();
if (_shadowNode)
{
if (shadowColor != _shadowColor4F)
@ -1134,7 +1134,7 @@ void Label::updateContent()
}
else
{
auto& fontDef = _getFontDefinition();
auto fontDef = _getFontDefinition();
createSpriteForSystemFont(fontDef);
if (_shadowEnabled)
{