jsuya pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=3b1f7bea75dc5e9753ace4e886174b4afdb0515a
commit 3b1f7bea75dc5e9753ace4e886174b4afdb0515a Author: JunsuChoi <jsuya.c...@samsung.com> Date: Tue Sep 24 10:20:43 2019 +0900 efl_gfx_path: Support 'l' command for optimized path. Summary: If there is no 'l' command for path optimization, refer to the previous cmd. If the previous command is 'm', use 'l'. Test Plan: [Example SVG] ''' <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 40 40"> <g fill="none" fill-rule="evenodd"> <rect width="40" height="40" fill="#f00" opacity="0"/> <path d="m12 20 13-12-13 12zm0 0 13 12-13-12z" fill-rule="nonzero" opacity=".12" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/> </g> </svg> ''' Reviewers: Hermet, smohanty, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10074 --- src/lib/efl/interfaces/efl_gfx_path.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/efl/interfaces/efl_gfx_path.c b/src/lib/efl/interfaces/efl_gfx_path.c index 38f22ecb9f..447b234c72 100644 --- a/src/lib/efl/interfaces/efl_gfx_path.c +++ b/src/lib/efl/interfaces/efl_gfx_path.c @@ -1377,6 +1377,13 @@ _next_command(char *path, char *cmd, double *arr, int *count) path++; *count = _number_count(*cmd); } + else + { + if (*cmd == 'm') + { + *cmd = 'l'; + } + } if ( *count == 7) { // special case for arc command --