Fix #28663: All "unit" properties show a value of 0 (on WinXP&MinGW&scons)
Use %g instead of %lg due to %g is supposed to be used for doubles and %lg confuses mingw at all
This commit is contained in:
@@ -494,7 +494,7 @@ static int unit_scale_str(char *str, int len_max, char *str_tmp, double scale_pr
|
||||
|
||||
len_name = strlen(replace_str);
|
||||
len_move= (len - (found_ofs+len_name)) + 1; /* 1+ to copy the string terminator */
|
||||
len_num= BLI_snprintf(str_tmp, TEMP_STR_SIZE, "*%lg"SEP_STR, unit->scalar/scale_pref); /* # removed later */
|
||||
len_num= BLI_snprintf(str_tmp, TEMP_STR_SIZE, "*%g"SEP_STR, unit->scalar/scale_pref); /* # removed later */
|
||||
|
||||
if(len_num > len_max)
|
||||
len_num= len_max;
|
||||
|
||||
Reference in New Issue
Block a user