From: Mira Grudzinska Date: Mon, 6 Sep 2021 11:01:09 +0000 (+0200) Subject: svg_loader: parsing flags in the elliptical arc curve X-Git-Tag: submit/tizen/20210909.021117~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55a108e13e9a2eb95cef609d989a6c0cd3bd8585;p=platform%2Fcore%2Fgraphics%2Ftizenvg.git svg_loader: parsing flags in the elliptical arc curve Since the arc flags can have values 0 or 1, we reported as an error cases, when a float value was given. Since the EBNF grammar can be used, we misread some paths. Removing the condition that prevents giving a float as a flag solves this problem and is in agreement with the w3 specs. --- diff --git a/src/loaders/svg/tvgSvgPath.cpp b/src/loaders/svg/tvgSvgPath.cpp index b73d1329..bdb79e8e 100644 --- a/src/loaders/svg/tvgSvgPath.cpp +++ b/src/loaders/svg/tvgSvgPath.cpp @@ -62,7 +62,6 @@ static bool _parseFlag(char** content, int* number) *number = *(*content) - '0'; *content += 1; end = *content; - if (end && *end == '.') return false; *content = _skipComma(end); return true;