raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=ae364b2a3ef17f8f17fcdd41aada27ee5bd7f3ee

commit ae364b2a3ef17f8f17fcdd41aada27ee5bd7f3ee
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sat Oct 10 13:08:37 2015 +0900

    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
---
 src/lib/els_cursor.c | 5 +++++
 1 file changed, 5 insertions(+)

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;
 }

-- 


Reply via email to