summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-10-10 13:08:37 +0900
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:15:03 +0100
commit4ff6cb815687f05a617da75f638f6f3fb515e53f (patch)
tree08aabc751f43267072418fd800f3ebb85c3f0a9d
parent6bf9a1fe767d8c77a9952dac690f153e72c20f79 (diff)
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
-rw-r--r--src/lib/els_cursor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/els_cursor.c b/src/lib/els_cursor.c
index c28994b1f..62c00a2b7 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)
229 _elm_cursor_obj_del, cur); 229 _elm_cursor_obj_del, cur);
230 edje_object_size_min_get(cur->obj, &x, &y); 230 edje_object_size_min_get(cur->obj, &x, &y);
231 edje_object_size_min_restricted_calc(cur->obj, &x, &y, x, y); 231 edje_object_size_min_restricted_calc(cur->obj, &x, &y, x, y);
232 if ((x < 8) || (y < 8))
233 {
234 x = 8;
235 y = 8;
236 }
232 evas_object_resize(cur->obj, x, y); 237 evas_object_resize(cur->obj, x, y);
233 return EINA_TRUE; 238 return EINA_TRUE;
234} 239}