summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Vorobiov <vi.vorobiov@samsung.com>2016-07-27 15:14:26 +0300
committerVitalii Vorobiov <vi.vorobiov@samsung.com>2016-07-27 15:18:07 +0300
commitb07a0c523ca83acf7d3ba059be33aa7d7de3ad5a (patch)
tree55b68feffa253c1c3d5ab5c6fa93360313a46d52
parentbf414d8c542db32cb85d41dcbc88f97b38319474 (diff)
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
-rw-r--r--src/lib/edje/edje_edit.c8
1 files 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
13191 string = eina_strbuf_new(); 13191 string = eina_strbuf_new();
13192 if (param_name) 13192 if (param_name)
13193 eina_strbuf_append_printf(string, "%s:", param_name); 13193 eina_strbuf_append_printf(string, "%s:", param_name);
13194 eina_strbuf_append_printf(string, 13194 eina_strbuf_append_printf(string, " %.2f", val1);
13195 (val1 == (int)val1) ? " %.1f" : " %g",
13196 val1);
13197 if (val_num == 2) 13195 if (val_num == 2)
13198 eina_strbuf_append_printf(string, 13196 eina_strbuf_append_printf(string, " %.2f", val2);
13199 (val2 == (int)val2) ? " %.1f" : " %g",
13200 val2);
13201 eina_strbuf_append(string, ";\n"); 13197 eina_strbuf_append(string, ";\n");
13202 BUF_APPEND(eina_strbuf_string_get(string)); 13198 BUF_APPEND(eina_strbuf_string_get(string));
13203 13199