mirror of https://github.com/axmolengine/axmol.git
fix nine patch image parser error on Windows.
This commit is contained in:
parent
4823cc3bc2
commit
7fff2bd3c4
|
@ -1427,7 +1427,7 @@ const Rect& Texture2D::getSpriteFrameCapInset( cocos2d::SpriteFrame *spriteFrame
|
|||
}
|
||||
else
|
||||
{
|
||||
auto capInsetMap = this->_ninePatchInfo->capInsetMap;
|
||||
auto &capInsetMap = this->_ninePatchInfo->capInsetMap;
|
||||
if(capInsetMap.find(spriteFrame) != capInsetMap.end())
|
||||
{
|
||||
return capInsetMap.at(spriteFrame);
|
||||
|
|
|
@ -151,7 +151,7 @@ namespace ui {
|
|||
auto spriteFrame = sprite->getSpriteFrame();
|
||||
if (texture->isContain9PatchInfo())
|
||||
{
|
||||
auto parsedCapInset = texture->getSpriteFrameCapInset(spriteFrame);
|
||||
auto& parsedCapInset = texture->getSpriteFrameCapInset(spriteFrame);
|
||||
if(!parsedCapInset.equals(Rect::ZERO))
|
||||
{
|
||||
this->_isPatch9 = true;
|
||||
|
|
Loading…
Reference in New Issue