fix LabelTTF::getBoundingBox() position error

This commit is contained in:
Ningyu 2014-07-30 14:00:01 +08:00
parent 08627dbbe2
commit 61a87e7e8b
1 changed files with 3 additions and 1 deletions

View File

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