From: JunsuChoi Date: Tue, 24 Sep 2019 01:20:43 +0000 (+0900) Subject: efl_gfx_path: Support 'l' command for optimized path. X-Git-Tag: submit/tizen/20190924.053902~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8d6c773de78616dae65311a83cae2924a329288;p=platform%2Fupstream%2Fefl.git 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] ''' ''' Reviewers: Hermet, smohanty, kimcinoo Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10074 Change-Id: I0e78949fcd0fdbff1d7a7314735319c2ce9924d4 --- diff --git a/src/lib/efl/interfaces/efl_gfx_path.c b/src/lib/efl/interfaces/efl_gfx_path.c index 38f22ec..447b234 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