From: raster Date: Mon, 29 Aug 2011 11:49:31 +0000 (+0000) Subject: ok- we'll be nice and 0 your w & h - also x, y, w, h did this too. X-Git-Tag: submit/trunk/20120815.174732~964 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d09bffee1349ffc625cf491effbdced122ce4f2;p=profile%2Fivi%2Fevas.git ok- we'll be nice and 0 your w & h - also x, y, w, h did this too. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@62942 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_grid.c b/src/lib/canvas/evas_object_grid.c index 0fac12e..ac96f04 100644 --- a/src/lib/canvas/evas_object_grid.c +++ b/src/lib/canvas/evas_object_grid.c @@ -266,6 +266,8 @@ evas_object_grid_size_set(Evas_Object *o, int w, int h) EAPI void evas_object_grid_size_get(const Evas_Object *o, int *w, int *h) { + if (w) *w = 0; + if (h) *h = 0; EVAS_OBJECT_GRID_DATA_GET_OR_RETURN(o, priv); if (w) *w = priv->size.w; if (h) *h = priv->size.h; @@ -367,6 +369,10 @@ evas_object_grid_pack_get(Evas_Object *o, Evas_Object *child, int *x, int *y, in { Evas_Object_Grid_Option *opt; + if (x) *x = 0; + if (y) *y = 0; + if (w) *w = 0; + if (h) *h = 0; EVAS_OBJECT_GRID_DATA_GET_OR_RETURN_VAL(o, priv, 0); opt = _evas_object_grid_option_get(child); if (!opt) return 0;