spinner: Fix internal logic about special value show instead of number.
Summary: If there is a special value for current spinner value, just jump to apply and show up the special value for entry text. There is no need to check format. @fix Test Plan: Add special value for each spinner value. Spinner editable set as true. Click the button layout for activated spinner entry. Check the entry text. Reviewers: cedric, Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D2976
This commit is contained in:
parent
fb4b8ec146
commit
932a52370e
|
@ -156,12 +156,12 @@ _entry_show(Elm_Spinner_Data *sd)
|
|||
}
|
||||
}
|
||||
|
||||
apply:
|
||||
if (_is_label_format_integer(fmt))
|
||||
snprintf(buf, sizeof(buf), fmt, (int)sd->val);
|
||||
else
|
||||
snprintf(buf, sizeof(buf), fmt, sd->val);
|
||||
|
||||
apply:
|
||||
elm_object_text_set(sd->ent, buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue