From d38b8027805eb1d89e343b708637198df189ae1a Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 19 Jan 2015 17:07:15 +0800 Subject: [PATCH] BMFont need to refresh size by refresh the string --- cocos/ui/UITextBMFont.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cocos/ui/UITextBMFont.cpp b/cocos/ui/UITextBMFont.cpp index d3fbb0cc57..6395264d08 100644 --- a/cocos/ui/UITextBMFont.cpp +++ b/cocos/ui/UITextBMFont.cpp @@ -94,10 +94,10 @@ void TextBMFont::setFntFile(const std::string& fileName) void TextBMFont::setString(const std::string& value) { - if (value == _labelBMFontRenderer->getString()) - { - return; - } + //if (value == _labelBMFontRenderer->getString()) + //{ + // return; + //} _stringValue = value; if (!_fntFileHasInit) {