From: Carsten Haitzler (Rasterman) Date: Sat, 10 Oct 2015 04:08:37 +0000 (+0900) Subject: elm cursors - if min size is too small then force it to be sane X-Git-Tag: v1.16.0-beta1~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae364b2a3ef17f8f17fcdd41aada27ee5bd7f3ee;p=platform%2Fupstream%2Felementary.git elm cursors - if min size is too small then force it to be sane cursor if less than 8x8 then make it 8x8. avoidx 0 sized pointers. @fix --- diff --git a/src/lib/els_cursor.c b/src/lib/els_cursor.c index c28994b..62c00a2 100644 --- a/src/lib/els_cursor.c +++ b/src/lib/els_cursor.c @@ -229,6 +229,11 @@ _elm_cursor_obj_add(Evas_Object *obj, Elm_Cursor *cur) _elm_cursor_obj_del, cur); edje_object_size_min_get(cur->obj, &x, &y); edje_object_size_min_restricted_calc(cur->obj, &x, &y, x, y); + if ((x < 8) || (y < 8)) + { + x = 8; + y = 8; + } evas_object_resize(cur->obj, x, y); return EINA_TRUE; }