Commits

Brad Kittenbrink committed 8960339

Fix for error in debug build accessing beyond the end of a vector.
reviewed by davep.

  • Participants
  • Parent commits 9ffedc2

Comments (0)

Files changed (1)

indra/llui/lltextbase.cpp

 	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))
 	{