ok weight default 0

SVN revision: 36431
This commit is contained in:
Carsten Haitzler 2008-10-04 16:42:04 +00:00
parent 09cfefd9dc
commit 204993a635
1 changed files with 2 additions and 2 deletions

View File

@ -893,12 +893,12 @@ EAPI void
evas_object_size_hint_weight_get(const Evas_Object *obj, double *x, double *y)
{
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
if (x) *x = 1.0; if (y) *y = 1.0;
if (x) *x = 0.0; if (y) *y = 0.0;
return;
MAGIC_CHECK_END();
if ((!obj->size_hints) || obj->delete_me)
{
if (x) *x = 1.0; if (y) *y = 1.0;
if (x) *x = 0.0; if (y) *y = 0.0;
return;
}
if (x) *x = obj->size_hints->weight.x;