git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@64835
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
img->data = evas_object_image_data_get(obj, EINA_FALSE);
if (!img->data) return EINA_FALSE;
evas_object_image_size_get(obj, &img->width, &img->height);
+ if ((!img->width) || (!img->height))
+ {
+ img->data = NULL;
+ img->width = img->height = 0;
+ return EINA_FALSE;
+ }
img->has_alpha = !!evas_object_image_alpha_get(obj);
img->channels = img->has_alpha ? 4 : 3;
img->rowstride = evas_object_image_stride_get(obj);