diff --git a/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp b/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp index 8dd240e62d..285a866f57 100644 --- a/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp +++ b/extensions/GUI/CCControlExtension/CCScale9Sprite.cpp @@ -687,20 +687,10 @@ void Scale9Sprite::updateCapInset() } else { - if (_spriteFrameRotated) - { - insets = CCRectMake(_insetBottom, - _insetLeft, - _spriteRect.size.width-_insetRight-_insetLeft, - _spriteRect.size.height-_insetTop-_insetBottom); - } - else - { - insets = CCRectMake(_insetLeft, - _insetTop, - _spriteRect.size.width-_insetLeft-_insetRight, - _spriteRect.size.height-_insetTop-_insetBottom); - } + insets = CCRectMake(_insetLeft, + _insetTop, + _spriteRect.size.width-_insetLeft-_insetRight, + _spriteRect.size.height-_insetTop-_insetBottom); } this->setCapInsets(insets); }