summaryrefslogtreecommitdiff
path: root/indra/llui/llmultislider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llmultislider.cpp')
-rw-r--r--indra/llui/llmultislider.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/indra/llui/llmultislider.cpp b/indra/llui/llmultislider.cpp
index b8f0a01b86..fbe0d3f065 100644
--- a/indra/llui/llmultislider.cpp
+++ b/indra/llui/llmultislider.cpp
@@ -507,17 +507,14 @@ BOOL LLMultiSlider::handleHover(S32 x, S32 y, MASK mask)
{
if (getEnabled())
{
- if (mHoverSlider.empty() || !getSliderThumbRect(mHoverSlider).pointInRect(x, y))
+ mHoverSlider.clear();
+ std::map<std::string, LLRect>::iterator mIt = mThumbRects.begin();
+ for (; mIt != mThumbRects.end(); mIt++)
{
- mHoverSlider.clear();
- std::map<std::string, LLRect>::iterator mIt = mThumbRects.begin();
- for (; mIt != mThumbRects.end(); mIt++)
+ if (mIt->second.pointInRect(x, y))
{
- if (mIt->second.pointInRect(x, y))
- {
- mHoverSlider = mIt->first;
- break;
- }
+ mHoverSlider = mIt->first;
+ break;
}
}
}