mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7622 from rny/LabelTTF
fix LabelTTF::getBoundingBox() position error
This commit is contained in:
commit
6ee0c4171f
|
@ -280,7 +280,8 @@ const Size& LabelTTF::getContentSize() const
|
||||||
|
|
||||||
Rect LabelTTF::getBoundingBox() const
|
Rect LabelTTF::getBoundingBox() const
|
||||||
{
|
{
|
||||||
return _renderLabel->getBoundingBox();
|
const_cast<LabelTTF*>(this)->setContentSize(_renderLabel->getContentSize());
|
||||||
|
return Node::getBoundingBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
|
#if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)))
|
||||||
|
|
Loading…
Reference in New Issue