furrymyad pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b07a0c523ca83acf7d3ba059be33aa7d7de3ad5a

commit b07a0c523ca83acf7d3ba059be33aa7d7de3ad5a
Author: Vitalii Vorobiov <[email protected]>
Date:   Wed Jul 27 15:14:26 2016 +0300

    edje_edit: avoid such values like 2.77556e-17
    
    using spinner to change double values means that sometimes
    if set such weird values while should go to 0.0
    
    @fix
---
 src/lib/edje/edje_edit.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index f1f9bb5..e559f7d 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -13191,13 +13191,9 @@ _edje_source_with_double_values_append(const char 
*param_name, char val_num, dou
    string = eina_strbuf_new();
    if (param_name)
      eina_strbuf_append_printf(string, "%s:", param_name);
-   eina_strbuf_append_printf(string,
-                             (val1 == (int)val1) ? " %.1f" : " %g",
-                             val1);
+   eina_strbuf_append_printf(string, " %.2f", val1);
    if (val_num == 2)
-     eina_strbuf_append_printf(string,
-                               (val2 == (int)val2) ? " %.1f" : " %g",
-                               val2);
+     eina_strbuf_append_printf(string, " %.2f", val2);
    eina_strbuf_append(string, ";\n");
    BUF_APPEND(eina_strbuf_string_get(string));
 

-- 


Reply via email to