Improvement ImageViewReader don't necessary loadTexture when imageFilePa...

...th is empty
Thank you for you reply! I’ll checkout it.
On Jun 25, 2014, at 4:07 PM, 子龙山人 <notifications@github.com> wrote:

> In cocos/editor-support/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.cpp:
> 
> > @@ -41,8 +41,12 @@ namespace cocostudio
> >          
> >          const rapidjson::Value& imageFileNameDic = DICTOOL->getSubDictionary_json(options, "fileNameData");
> >          int imageFileNameType = DICTOOL->getIntValue_json(imageFileNameDic, "resourceType");
> > -        std::string imageFileName = this->getResourcePath(imageFileNameDic, "path", (Widget::TextureResType)imageFileNameType);
> > -        imageView->loadTexture(imageFileName, (Widget::TextureResType)imageFileNameType);
> > +        std::string imageFilePath = DICTOOL->getStringValue_json(imageFileNameDic, "path");
> I think we have checked the empty of imageFilePath in the imageView's loadTexture method. Please checkout it .
> 
> —
> Reply to this email directly or view it on GitHub.
>