summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-01-27 13:06:26 -0800
committerTofu Linden <tofu.linden@lindenlab.com>2010-01-27 13:06:26 -0800
commit706fd4d0735e446ea6c9eab7387990375af53c48 (patch)
tree1c78fc88c3d44c2b9687d14026c72f2f4a548851
parentc48f2d7873568c26d835d6ce1d80c3c3533854a6 (diff)
CID-103
Checker: INVALIDATE_ITERATOR Function: LLMenuGL::scrollItemsDown() File: /indra/llui/llmenugl.cpp
-rw-r--r--indra/llui/llmenugl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp
index c172a2b714..171269e30d 100644
--- a/indra/llui/llmenugl.cpp
+++ b/indra/llui/llmenugl.cpp
@@ -1883,7 +1883,8 @@ void LLMenuGL::scrollItemsDown()
}
}
- if ((*next_item_iter)->getVisible())
+ if (next_item_iter != mItems.end() &&
+ (*next_item_iter)->getVisible())
{
mFirstVisibleItem = *next_item_iter;
}