hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=1a1fddc33976cfe5d1a5cf002facdf3b98edb11c

commit 1a1fddc33976cfe5d1a5cf002facdf3b98edb11c
Author: Woochan Lee <wc0917....@samsung.com>
Date:   Thu Sep 24 17:06:17 2015 +0900

    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
---
 src/lib/elm_spinner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index 3c5b31b..bbd0204 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -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);
 }
 

-- 


Reply via email to