Fixed minor regression of previous commit

This commit is contained in:
Chlumsky 2024-01-06 23:30:16 +01:00
parent 49453c96f1
commit b21499180d
1 changed files with 2 additions and 2 deletions

View File

@ -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) {