From b421660676bc13db3484889ac76b1c21ea313445 Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Mon, 6 Sep 2021 13:01:09 +0200 Subject: [PATCH] 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. --- src/loaders/svg/tvgSvgPath.cpp | 1 - 1 file changed, 1 deletion(-) 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;