summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authormaksymsproductengine <maksymsproductengine@lindenlab.com>2014-06-20 20:26:51 +0300
committermaksymsproductengine <maksymsproductengine@lindenlab.com>2014-06-20 20:26:51 +0300
commit7991fe96ec0223a8e8f4794e21c13cd345c192bc (patch)
treeab9d6b49a8422889ff4691bef404fce9dcb33cfe /indra/llui
parent4a7d60aaea1cf2d8f175622cbfaecf63140387d3 (diff)
MAINT-3475 FIXED 'windows 64bit (?) crash in LLTextBase::getDocIndexFromLocalCoord'
Diffstat (limited to 'indra/llui')
-rwxr-xr-xindra/llui/lltextbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index a08b53767e..b6eb150bc3 100755
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -2403,7 +2403,7 @@ S32 LLTextBase::getDocIndexFromLocalCoord( S32 local_x, S32 local_y, BOOL round,
// binary search for line that starts before local_y
line_list_t::const_iterator line_iter = std::lower_bound(mLineInfoList.begin(), mLineInfoList.end(), doc_y, compare_bottom());
- if (line_iter == mLineInfoList.end())
+ if (!mLineInfoList.size() || line_iter == mLineInfoList.end())
{
return getLength(); // past the end
}