efl_ui_spin_button: stop calling only the parent
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Thu, 1 Aug 2019 11:29:06 +0000 (13:29 +0200)
committerWooHyun Jung <wh0705.jung@samsung.com>
Mon, 5 Aug 2019 02:51:03 +0000 (11:51 +0900)
if the spin button is skipped the spin is called directly, the label
will display the wrong value.

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D9473

src/lib/elementary/efl_ui_spin_button.c

index cfd13cf..ef53137 100644 (file)
@@ -772,8 +772,7 @@ _efl_ui_spin_button_efl_access_value_value_and_text_set(Eo *obj, Efl_Ui_Spin_But
    if (pd->val_min > value) return EINA_FALSE;
    if (pd->val_max < value) return EINA_FALSE;
 
-   pd->val = value;
-   efl_ui_range_value_set(efl_super(obj, MY_CLASS), value);
+   efl_ui_range_value_set(obj, value);
 
    return EINA_TRUE;
 }