diff options
author | brad kittenbrink <brad@lindenlab.com> | 2011-05-12 16:09:29 -0700 |
---|---|---|
committer | brad kittenbrink <brad@lindenlab.com> | 2011-05-12 16:09:29 -0700 |
commit | b3dddbf30b42eff8ef7031c63e91244f07e8bd77 (patch) | |
tree | 36d481d10f47e3ebe4d1047a4c4fc9b5b53b13c5 /indra/llui | |
parent | bdcb177fbbcf17e5c5e4078bf6d41c437e36fbeb (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.cpp | 2 |
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)) { |