code tidy

This commit is contained in:
Ningyu 2014-07-30 16:19:05 +08:00
parent 61a87e7e8b
commit 52ca596b3d
1 changed files with 2 additions and 3 deletions

View File

@ -280,9 +280,8 @@ const Size& LabelTTF::getContentSize() const
Rect LabelTTF::getBoundingBox() const
{
Size size = getContentSize();
Rect rect = Node::getBoundingBox();
return rect;
const_cast<LabelTTF*>(this)->setContentSize(_renderLabel->getContentSize());
return Node::getBoundingBox();
}
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))