From: Youngbok Shin Date: Fri, 2 Mar 2018 04:44:23 +0000 (+0900) Subject: textpath: update map when object's position is updated X-Git-Tag: accepted/tizen/4.0/unified/20180309.064155^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef018e8a03bf7b35798bd1ac2c4f56121e9c3793;p=platform%2Fupstream%2Felementary.git textpath: update map when object's position is updated Updating map in the smart move override function is not valid. The position is not updated to the object's structure in the function. It can be replaced with evas_map_util_object_move_sync_set() function. @tizen_fix Change-Id: Ic1e09887aa87437de2b1204fc58e762ed4e427c4 --- diff --git a/src/lib/efl_ui_textpath.c b/src/lib/efl_ui_textpath.c index ff5b582..a1b547c 100644 --- a/src/lib/efl_ui_textpath.c +++ b/src/lib/efl_ui_textpath.c @@ -252,6 +252,9 @@ _text_draw(Efl_Ui_Textpath_Data *pd) return; } map = evas_map_new(map_point_no); + /* TIZEN_ONLY(20180302): update map when object's position is updated */ + evas_map_util_object_move_sync_set(map, EINA_TRUE); + /* END */ w1 = w2 = 0; EINA_INLIST_FOREACH(pd->segments, seg) @@ -621,8 +624,14 @@ EOLIAN static void _efl_ui_textpath_evas_object_smart_move(Eo *obj, Efl_Ui_Textpath_Data *pd, Evas_Coord x, Evas_Coord y) { eo_do_super(obj, MY_CLASS, evas_obj_smart_move(x, y)); + + /* TIZEN_ONLY(20180302): update map when object's position is updated + * Do Nothing. The position is not updated to the object in this function. + * Test with evas_object_geometry_get(). _path_data_get(obj, pd, EINA_FALSE); _text_draw(pd); + */ + /* END */ } /*