edje edit - api was broken with incorrect l r t b ordering for border

this fixes ordering to match everywhere else ANd usage of the get
func. this was broken already where top/bottom border would swap -
plese see coverity scan CID 1355590 for an example of problems this
created.
This commit is contained in:
Carsten Haitzler 2016-07-09 12:17:46 +09:00
parent 3c5ab2b46e
commit 116993504a
1 changed files with 4 additions and 4 deletions

View File

@ -9444,7 +9444,7 @@ FUNC_IMAGE_SET_API_SIZE(min);
FUNC_IMAGE_SET_API_SIZE(max);
EAPI Eina_Bool
edje_edit_image_set_image_border_get(Evas_Object *obj, const char *set_name, unsigned int place, int *l, int *r, int *b, int *t)
edje_edit_image_set_image_border_get(Evas_Object *obj, const char *set_name, unsigned int place, int *l, int *r, int *t, int *b)
{
Edje_Image_Directory_Set *de = NULL;
Edje_Image_Directory_Set_Entry *dim = NULL;
@ -9468,14 +9468,14 @@ edje_edit_image_set_image_border_get(Evas_Object *obj, const char *set_name, uns
if (l) *l = dim->border.l;
if (r) *r = dim->border.r;
if (b) *b = dim->border.b;
if (t) *t = dim->border.t;
if (b) *b = dim->border.b;
return EINA_TRUE;
}
EAPI Eina_Bool
edje_edit_image_set_image_border_set(Evas_Object *obj, const char *set_name, unsigned int place, int l, int r, int b, int t)
edje_edit_image_set_image_border_set(Evas_Object *obj, const char *set_name, unsigned int place, int l, int r, int t, int b)
{
Edje_Image_Directory_Set *de = NULL;
Edje_Image_Directory_Set_Entry *dim = NULL;
@ -9499,8 +9499,8 @@ edje_edit_image_set_image_border_set(Evas_Object *obj, const char *set_name, uns
if (l >= 0) dim->border.l = l;
if (r >= 0) dim->border.r = r;
if (b >= 0) dim->border.b = b;
if (t >= 0) dim->border.t = t;
if (b >= 0) dim->border.b = b;
return EINA_TRUE;
}