From b21499180d563b65e9bc4fe0e93b4467de75d4ac Mon Sep 17 00:00:00 2001 From: Chlumsky Date: Sat, 6 Jan 2024 23:30:16 +0100 Subject: [PATCH] Fixed minor regression of previous commit --- ext/import-svg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/import-svg.cpp b/ext/import-svg.cpp index a12ad37..aa1f6ad 100644 --- a/ext/import-svg.cpp +++ b/ext/import-svg.cpp @@ -53,6 +53,7 @@ static bool readNodeType(char &output, const char *&pathDef) { } static bool readDouble(double &output, const char *&pathDef) { + skipExtraChars(pathDef); char *end = NULL; output = strtod(pathDef, &end); if (end > pathDef) { @@ -63,8 +64,7 @@ static bool readDouble(double &output, const char *&pathDef) { } static bool readCoord(Point2 &output, const char *&pathDef) { - skipExtraChars(pathDef); - return readDouble(output.x, pathDef) && (skipExtraChars(pathDef), readDouble(output.y, pathDef)); + return readDouble(output.x, pathDef) && readDouble(output.y, pathDef); } static bool readBool(bool &output, const char *&pathDef) {