summaryrefslogtreecommitdiff
path: root/indra/llui/llspinctrl.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/llspinctrl.cpp
parentc4059553afa289f51f9966b4283b2a62b7103303 (diff)
merge release@58791 vc8@58828 -> release
Adds Dev Studio 2005 (VC8) Reviewed by Rob
Diffstat (limited to 'indra/llui/llspinctrl.cpp')
-rw-r--r--indra/llui/llspinctrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/llspinctrl.cpp b/indra/llui/llspinctrl.cpp
index 332372011e..4c1700175b 100644
--- a/indra/llui/llspinctrl.cpp
+++ b/indra/llui/llspinctrl.cpp
@@ -229,7 +229,7 @@ void LLSpinCtrl::updateEditor()
LLLocale locale(LLLocale::USER_LOCALE);
// Don't display very small negative values as -0.000
- F32 displayed_value = (F32)floor(getValue().asReal() * pow(10, mPrecision) + 0.5) / (F32)pow(10, mPrecision);
+ F32 displayed_value = (F32)floor(getValue().asReal() * pow(10.0, (F64)mPrecision) + 0.5) / (F32)pow(10.0, (F64)mPrecision);
// if( S32( displayed_value * pow( 10, mPrecision ) ) == 0 )
// {