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:
Mira Grudzinska 2021-09-06 13:01:09 +02:00 committed by JunsuChoi
parent d21089ddfd
commit b421660676

View 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;