Fix pull request #6894 merge conflicts

This commit is contained in:
Frank.Xu 2014-09-29 16:22:55 +08:00
parent c4fac7b37d
commit 1c1d917620
1 changed files with 7 additions and 3 deletions

View File

@ -110,9 +110,13 @@ namespace cocostudio
const rapidjson::Value& imageFileNameDic = DICTOOL->getSubDictionary_json(options, P_FileNameData);
int imageFileNameType = DICTOOL->getIntValue_json(imageFileNameDic, P_ResourceType);
std::string imageFileName = this->getResourcePath(imageFileNameDic, P_Path, (Widget::TextureResType)imageFileNameType);
imageView->loadTexture(imageFileName, (Widget::TextureResType)imageFileNameType);
const std::string& imageFilePath = DICTOOL->getStringValue_json(imageFileNameDic, P_Path);
if (!imageFilePath.empty()) {
std::string imageFileName = this->getResourcePath(imageFileNameDic, P_Path, (Widget::TextureResType)imageFileNameType);
imageView->loadTexture(imageFileName, (Widget::TextureResType)imageFileNameType);
}
bool scale9EnableExist = DICTOOL->checkObjectExist_json(options, P_Scale9Enable);
bool scale9Enable = false;