svg_loader: parsing flags in the elliptical arc curve
authorMira Grudzinska <m.grudzinska@samsung.com>
Mon, 6 Sep 2021 11:01:09 +0000 (13:01 +0200)
committerJunsuChoi <jsuya.choi@samsung.com>
Wed, 8 Sep 2021 08:11:43 +0000 (17:11 +0900)
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.

src/loaders/svg/tvgSvgPath.cpp

index b73d132961a30df0b33424e7785afa39a5097224..bdb79e8e08edeca5a78177cb85f67bf4025415d6 100644 (file)
@@ -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;