diff options
author | Graham Linden <graham@lindenlab.com> | 2018-12-11 08:00:22 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-12-11 08:00:22 -0800 |
commit | 89385d1aa3ae18274a2049d2ca7472f1160e17d7 (patch) | |
tree | b3824d53329c64b51468736d95a27f9d888fcef4 /indra/llui/llmultislider.cpp | |
parent | 8c128f5b635b4ae8f36b37fde8702aedc2fad1cc (diff) | |
parent | 87e83274f7f0be38c571c9f01848368d0fc160bf (diff) |
Merge
Diffstat (limited to 'indra/llui/llmultislider.cpp')
-rw-r--r-- | indra/llui/llmultislider.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/llui/llmultislider.cpp b/indra/llui/llmultislider.cpp index 9a7b6f9f6b..ed93b3d44c 100644 --- a/indra/llui/llmultislider.cpp +++ b/indra/llui/llmultislider.cpp @@ -354,17 +354,17 @@ const std::string& LLMultiSlider::addSlider(F32 val) return mCurSlider; } -void LLMultiSlider::addSlider(F32 val, const std::string& name) +bool LLMultiSlider::addSlider(F32 val, const std::string& name) { F32 initVal = val; if(mValue.size() >= mMaxNumSliders) { - return; + return false; } bool foundOne = findUnusedValue(initVal); if(!foundOne) { - return; + return false; } // add a new thumb rect @@ -383,6 +383,8 @@ void LLMultiSlider::addSlider(F32 val, const std::string& name) // move the slider setSliderValue(mCurSlider, initVal, TRUE); + + return true; } bool LLMultiSlider::findUnusedValue(F32& initVal) |