efl_ui_textpath: adjust angle only for circle text.

This commit is contained in:
Hermet Park 2019-07-10 14:33:29 +09:00
parent 52a7ae56cd
commit 4fe9edaa26
1 changed files with 5 additions and 1 deletions

View File

@ -644,7 +644,11 @@ _textpath_text_set_internal(Eo *obj, Efl_Ui_Textpath_Data *pd, const char *part,
if (!text) text = "";
ret = edje_object_part_text_set(pd->text_obj, part, text);
_ellipsis_set(pd, obj);
_path_start_angle_adjust(obj, pd);
//Only if circlular textpath
if (pd->circle.radius > 0)
_path_start_angle_adjust(obj, pd);
_sizing_eval(pd);
return ret;