mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
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.
This commit is contained in:
parent
d21089ddfd
commit
b421660676
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue