summaryrefslogtreecommitdiff
path: root/indra/llrender
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-03-24 10:32:38 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-03-24 10:32:38 +0000
commit7857f59f9e7c673f1ddbf32d6a66e85f78004445 (patch)
treef9831059bcadfc8be4fc5cd09673dfa419fa9b63 /indra/llrender
parente7d9999359dd62509c685181d620b092ed28bc60 (diff)
parent00a97a4f95f644b1807d72cebce6dd6a7a1cf31e (diff)
merge from viewer-2-0
Diffstat (limited to 'indra/llrender')
-rw-r--r--indra/llrender/llfontgl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp
index 768f042e69..d9e1976341 100644
--- a/indra/llrender/llfontgl.cpp
+++ b/indra/llrender/llfontgl.cpp
@@ -673,7 +673,7 @@ S32 LLFontGL::charFromPixelOffset(const llwchar* wchars, S32 begin_offset, F32 t
target_x *= sScaleX;
// max_chars is S32_MAX by default, so make sure we don't get overflow
- const S32 max_index = begin_offset + llmin(S32_MAX - begin_offset, max_chars);
+ const S32 max_index = begin_offset + llmin(S32_MAX - begin_offset, max_chars - 1);
F32 scaled_max_pixels = max_pixels * sScaleX;