aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llsliderctrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llsliderctrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/llui/llsliderctrl.cpp b/linden/indra/llui/llsliderctrl.cpp
index ca8f3ad..c62ec9a 100644
--- a/linden/indra/llui/llsliderctrl.cpp
+++ b/linden/indra/llui/llsliderctrl.cpp
@@ -215,7 +215,7 @@ void LLSliderCtrl::updateText()
215 LLLocale locale(LLLocale::USER_LOCALE); 215 LLLocale locale(LLLocale::USER_LOCALE);
216 216
217 // Don't display very small negative values as -0.000 217 // Don't display very small negative values as -0.000
218 F32 displayed_value = (F32)(floor(getValueF32() * pow(10, mPrecision) + 0.5) / pow(10, mPrecision)); 218 F32 displayed_value = (F32)(floor(getValueF32() * pow(10.0, (F64)mPrecision) + 0.5) / pow(10.0, (F64)mPrecision));
219 219
220 LLString format = llformat("%%.%df", mPrecision); 220 LLString format = llformat("%%.%df", mPrecision);
221 LLString text = llformat(format.c_str(), displayed_value); 221 LLString text = llformat(format.c_str(), displayed_value);