fix nine patch image parser error on Windows.

This commit is contained in:
andyque 2015-06-23 15:42:58 +08:00
parent 4823cc3bc2
commit 7fff2bd3c4
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;