diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-11-10 23:51:44 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-11-10 23:51:44 +0400 |
commit | d27f8103dd0d2fcc20974431fa063a2a87d780de (patch) | |
tree | 6ea84853b65b8d5ab1b628ddd7a5e0d9d15754e4 /source/blender/blenkernel/intern | |
parent | aaa99106fe3c40e2b8cf4d60e14597a976b2f983 (diff) |
Fix [#37393] Input dimensions are case sensitive in the property panel, uppercase input is misinterpreted
Typo in lowercasing code!
Diffstat (limited to 'source/blender/blenkernel/intern')
-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 3c03712231a..4b6ac824fd8 100644 --- a/source/blender/blenkernel/intern/unit.c +++ b/source/blender/blenkernel/intern/unit.c @@ -609,9 +609,10 @@ int bUnit_ReplaceString(char *str, int len_max, const char *str_prev, double sca int i; char *ch = str; - for (i = 0; (i >= len_max || *ch == '\0'); i++, ch++) + for (i = 0; (i < len_max || *ch != '\0'); i++, ch++) { if ((*ch >= 'A') && (*ch <= 'Z')) *ch += ('a' - 'A'); + } } for (unit = usys->units; unit->name; unit++) { |