From 3c0fde2f665fba2fcaff620c77eb9b28403f9d52 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 10 Dec 2013 18:04:34 +0900 Subject: [PATCH] example - prefs 03 - disallow animation time of 0 (just not valid/sensible) this fixes T602 --- legacy/elementary/src/examples/prefs_example_03.c | 1 + 1 file changed, 1 insertion(+) diff --git a/legacy/elementary/src/examples/prefs_example_03.c b/legacy/elementary/src/examples/prefs_example_03.c index a55e7f1..2e3ffc9 100644 --- a/legacy/elementary/src/examples/prefs_example_03.c +++ b/legacy/elementary/src/examples/prefs_example_03.c @@ -30,6 +30,7 @@ _update_animation_time(Evas_Object *prefs, Evas_Object *layout) elm_prefs_item_value_get(prefs, "main:config:options:animation_time", &value); eina_value_get(&value, &animation_time); + if (animation_time < 0.01) animation_time = 0.01; msg.val = animation_time; edje_object_message_send(elm_layout_edje_get(layout), EDJE_MESSAGE_FLOAT, MSG_ID_VEL, &msg); -- 2.7.4