Fix incorrect limit check in button drawing

Regression in d617466d87
This commit is contained in:
2019-10-16 14:13:34 +11:00
parent 1094c3f276
commit 01e2786bdd

View File

@@ -3391,7 +3391,7 @@ static void ui_but_build_drawstr_float(uiBut *but, double value)
if (value == (double)FLT_MAX) {
STR_CONCAT(but->drawstr, slen, "inf");
}
else if (value == (double)-FLT_MIN) {
else if (value == (double)-FLT_MAX) {
STR_CONCAT(but->drawstr, slen, "-inf");
}
else if (subtype == PROP_PERCENTAGE) {