mirror of https://github.com/axmolengine/axmol.git
code tidy
This commit is contained in:
parent
61a87e7e8b
commit
52ca596b3d
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue