diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-02 20:09:32 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-03-02 20:12:14 +0300 |
commit | f51ef8ac4d3f94036463fac9fb59ec8266e0197d (patch) | |
tree | b892680cfcd0ac237c30f7d9078e48ac46427c32 | |
parent | ae0901bb097fefd4c6311a08393e7d584193eafe (diff) |
Correction to own previous rB9c0de0084bfe.
'1mm+1m' would fail with original fix, now consuming all alpha chars before checking unit again...
-rw-r--r-- | source/blender/blenkernel/intern/unit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/unit.c b/source/blender/blenkernel/intern/unit.c index e3ea5b9ba3f..3d7ba8276f0 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -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; |