diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llui/llspinctrl.cpp | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/llui/llspinctrl.cpp')
-rw-r--r-- | linden/indra/llui/llspinctrl.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/llui/llspinctrl.cpp b/linden/indra/llui/llspinctrl.cpp index 9e85b20..f196975 100644 --- a/linden/indra/llui/llspinctrl.cpp +++ b/linden/indra/llui/llspinctrl.cpp | |||
@@ -249,6 +249,18 @@ void LLSpinCtrl::setValue(const LLSD& value ) | |||
249 | } | 249 | } |
250 | } | 250 | } |
251 | 251 | ||
252 | //no matter if Editor has the focus, update the value | ||
253 | void LLSpinCtrl::forceSetValue(const LLSD& value ) | ||
254 | { | ||
255 | F32 v = (F32)value.asReal(); | ||
256 | if (mValue != v || !mbHasBeenSet) | ||
257 | { | ||
258 | mbHasBeenSet = TRUE; | ||
259 | mValue = v; | ||
260 | |||
261 | updateEditor(); | ||
262 | } | ||
263 | } | ||
252 | 264 | ||
253 | void LLSpinCtrl::clear() | 265 | void LLSpinCtrl::clear() |
254 | { | 266 | { |