summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-05-12 18:50:22 -0500
committerDave Parks <davep@lindenlab.com>2011-05-12 18:50:22 -0500
commit8017900e7f536663153451ff788d8662427782ed (patch)
treef200e2bc13d8b9d02050835e7e4492aa63342144 /indra/llui
parent93696ac019865898d35d37d1e32d7a4b819a0c93 (diff)
parent2a843e9a6bb5cb70f69794419ab4a7d16ee3c6cb (diff)
merge
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))
{