Correction to own previous rB9c0de0084bfe.

'1mm+1m' would fail with original fix, now consuming all alpha chars before checking unit again...
This commit is contained in:
Bastien Montagne
2016-03-02 18:09:32 +01:00
parent ae0901bb09
commit f51ef8ac4d

View File

@@ -479,7 +479,8 @@ static const char *unit_find_str(const char *str, const char *substr)
}
}
/* If str_found is not a valid unit, we have to check further in the string... */
str = str_found + 1;
for (str_found++; isalpha_or_utf8(*str_found); str_found++);
str = str_found;
}
else {
break;