rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=4ef88c478ce52dcb00e0e812c08f867bfc8f0c32

commit 4ef88c478ce52dcb00e0e812c08f867bfc8f0c32
Author: Vitalii Vorobiov <[email protected]>
Date:   Fri Aug 26 17:29:22 2016 +0300

    groupview_calc: wrong center calculation for MAP
    
    @fix
---
 src/bin/ui/workspace/groupview_calc.c | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/src/bin/ui/workspace/groupview_calc.c 
b/src/bin/ui/workspace/groupview_calc.c
index 2930b05..6f2c555 100644
--- a/src/bin/ui/workspace/groupview_calc.c
+++ b/src/bin/ui/workspace/groupview_calc.c
@@ -877,22 +877,18 @@ _image_param_update(Groupview_Part *gp, Evas_Object 
*edit_obj)
    map_on = edje_edit_state_map_on_get(edit_obj, gp->part->name, state, value);
    if (map_on)
      {
-
-        rot_part = edje_edit_state_map_rotation_center_get(edit_obj, 
gp->part->name, state, value);
-        edje_object_part_geometry_get(edit_obj, rot_part, &rx, &ry, &rw, &rh);
         edje_object_part_geometry_get(edit_obj, gp->part->name, NULL, NULL, 
&w, &h);
-        evas_object_geometry_get(edit_obj, &xe, &ye, NULL, NULL);
+        rot_part = edje_edit_state_map_rotation_center_get(edit_obj, 
gp->part->name, state, value);
 
         if (rot_part)
-          {
-             center_x = xe + rx + (rw / 2);
-             center_y = ye + ry + (rh / 2);
-          }
+          edje_object_part_geometry_get(edit_obj, rot_part, &rx, &ry, &rw, 
&rh);
         else
-          {
-             center_x = xe + w / 2;
-             center_y = ye + h / 2;
-          }
+          edje_object_part_geometry_get(edit_obj, gp->part->name, &rx, &ry, 
&rw, &rh);
+
+        evas_object_geometry_get(edit_obj, &xe, &ye, NULL, NULL);
+
+        center_x = xe + rx + (rw / 2);
+        center_y = ye + ry + (rh / 2);
         center_z = 0;
 
         m = evas_map_new(4);

-- 


Reply via email to