Prevent to update_add on object to use file_set
[framework/osp/uifw.git] / src / ui / animations / FUiAnim_EflNode.cpp
index 2c093ff..460c86f 100644 (file)
@@ -692,8 +692,13 @@ _EflNode::SetFlushNeeded(void)
 
                if (pSurfaceImpl->__isImageObject)
                {
-                       evas_object_image_size_get(pImageObject, &imageWidth, &imageHeight);
-                       evas_object_image_data_update_add(pImageObject, 0, 0, imageWidth, imageHeight);
+                       const char* pName = null;
+                       evas_object_image_file_get(pImageObject, &pName, null);
+                       if (!pName)
+                       {
+                               evas_object_image_size_get(pImageObject, &imageWidth, &imageHeight);
+                               evas_object_image_data_update_add(pImageObject, 0, 0, imageWidth, imageHeight);
+                       }
                }
        }