elm cursors - if min size is too small then force it to be sane
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 10 Oct 2015 04:08:37 +0000 (13:08 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 10 Oct 2015 04:08:37 +0000 (13:08 +0900)
cursor if less than 8x8 then make it 8x8. avoidx 0 sized pointers.

@fix

legacy/elementary/src/lib/els_cursor.c

index c28994b..62c00a2 100644 (file)
@@ -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;
 }