Fix [#37393] Input dimensions are case sensitive in the property panel, uppercase input is misinterpreted

Typo in lowercasing code!
This commit is contained in:
Bastien Montagne 2013-11-10 19:51:44 +00:00
parent aaa99106fe
commit d27f8103dd
1 changed files with 2 additions and 1 deletions

View File

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