result
_VisualElementImpl::SetImageSource(const String& filePath)
{
+ result r = E_SUCCESS;
RebuildHierarchyProps(0, true, true);
SysTryReturnResult(NID_UI_ANIM, HAVE_SURFACE(this), E_SYSTEM, "Realizing back-buffer surface failed.");
- result r = GetSharedData().SetImage(filePath);
- SysTryLog(NID_UI_ANIM, r == E_SUCCESS, "[%s] Propagating.", GetErrorMessage(r));
+ if (!filePath.IsEmpty())
+ {
+ r = GetSharedData().SetImage(filePath);
+ SysTryLog(NID_UI_ANIM, r == E_SUCCESS, "[%s] Propagating.", GetErrorMessage(r));
+ }
__imageFilePath = filePath;