hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=cd1863542479e9dd71dc36d86916f90e4519ac7a

commit cd1863542479e9dd71dc36d86916f90e4519ac7a
Author: Hermet Park <[email protected]>
Date:   Wed Aug 24 16:18:04 2016 +0900

    live_edit: fix wrong rounding() usage.
    
    Probably, It needs to overwrite the rounded value to the origins,
    but it missed.
---
 src/bin/live_edit.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/bin/live_edit.c b/src/bin/live_edit.c
index c2eee5e..d29d104 100644
--- a/src/bin/live_edit.c
+++ b/src/bin/live_edit.c
@@ -844,10 +844,10 @@ keygrabber_direction_key_down_cb(void *data, Evas *e 
EINA_UNUSED,
    ld->rel_info.rel2_y += ld->rel_info.rel1_y - orig_rel1_y;
 
    //Round off in the end to reduce round-off error.
-   ROUNDING(ld->rel_info.rel1_x, 4);
-   ROUNDING(ld->rel_info.rel1_y, 4);
-   ROUNDING(ld->rel_info.rel2_x, 4);
-   ROUNDING(ld->rel_info.rel2_y, 4);
+   ld->rel_info.rel1_x = ROUNDING(ld->rel_info.rel1_x, 4);
+   ld->rel_info.rel1_y = ROUNDING(ld->rel_info.rel1_y, 4);
+   ld->rel_info.rel2_x = ROUNDING(ld->rel_info.rel2_x, 4);
+   ld->rel_info.rel2_y = ROUNDING(ld->rel_info.rel2_y, 4);
 
    ctrl_pt_update(ld);
    info_text_update(ld);
@@ -1894,10 +1894,10 @@ layout_mouse_move_cb(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj,
    ld->rel_info.rel2_y += ld->rel_info.rel1_y - orig_rel1_y;
 
    //Round off in the end to reduce round-off error.
-   ROUNDING(ld->rel_info.rel1_x, 2);
-   ROUNDING(ld->rel_info.rel1_y, 2);
-   ROUNDING(ld->rel_info.rel2_x, 2);
-   ROUNDING(ld->rel_info.rel2_y, 2);
+   ld->rel_info.rel1_x = ROUNDING(ld->rel_info.rel1_x, 2);
+   ld->rel_info.rel1_y = ROUNDING(ld->rel_info.rel1_y, 2);
+   ld->rel_info.rel2_x = ROUNDING(ld->rel_info.rel2_x, 2);
+   ld->rel_info.rel2_y = ROUNDING(ld->rel_info.rel2_y, 2);
 
    evas_object_move(obj, x, y);
 
@@ -1913,7 +1913,7 @@ layout_mouse_move_cb(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj,
    info_text_update(ld);
    align_line_update(ld);
    update_line_attach_effect(ld, align_line);
-}
+
 
 static void
 layout_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,

-- 


Reply via email to