summaryrefslogtreecommitdiff
path: root/indra/llui/llsliderctrl.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2007-03-07 02:48:44 +0000
committerSteven Bennetts <steve@lindenlab.com>2007-03-07 02:48:44 +0000
commit068558f888446691ebbb3df2105948e0d50300a5 (patch)
tree5224e0fa3e627bc9018af9660198ef15b19c5487 /indra/llui/llsliderctrl.cpp
parentc4059553afa289f51f9966b4283b2a62b7103303 (diff)
merge release@58791 vc8@58828 -> release
Adds Dev Studio 2005 (VC8) Reviewed by Rob
Diffstat (limited to 'indra/llui/llsliderctrl.cpp')
-rw-r--r--indra/llui/llsliderctrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/llsliderctrl.cpp b/indra/llui/llsliderctrl.cpp
index 6c740aa39e..3079726434 100644
--- a/indra/llui/llsliderctrl.cpp
+++ b/indra/llui/llsliderctrl.cpp
@@ -196,7 +196,7 @@ void LLSliderCtrl::updateText()
LLLocale locale(LLLocale::USER_LOCALE);
// Don't display very small negative values as -0.000
- F32 displayed_value = (F32)(floor(getValueF32() * pow(10, mPrecision) + 0.5) / pow(10, mPrecision));
+ F32 displayed_value = (F32)(floor(getValueF32() * pow(10.0, (F64)mPrecision) + 0.5) / pow(10.0, (F64)mPrecision));
LLString format = llformat("%%.%df", mPrecision);
LLString text = llformat(format.c_str(), displayed_value);