summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorbrad kittenbrink <brad@lindenlab.com>2011-05-12 16:09:29 -0700
committerbrad kittenbrink <brad@lindenlab.com>2011-05-12 16:09:29 -0700
commitb3dddbf30b42eff8ef7031c63e91244f07e8bd77 (patch)
tree36d481d10f47e3ebe4d1047a4c4fc9b5b53b13c5 /indra/llui
parentbdcb177fbbcf17e5c5e4078bf6d41c437e36fbeb (diff)
Fix for error in debug build accessing beyond the end of a vector.
reviewed by davep.
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/lltextbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index 1c19a33c4e..1cc3cc04d6 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -1164,7 +1164,7 @@ void LLTextBase::reflow()
S32 first_line = getFirstVisibleLine();
// if scroll anchor not on first line, update it to first character of first line
- if (!mLineInfoList.empty()
+ if ((first_line < mLineInfoList.size())
&& (mScrollIndex < mLineInfoList[first_line].mDocIndexStart
|| mScrollIndex >= mLineInfoList[first_line].mDocIndexEnd))
{