summaryrefslogtreecommitdiff
path: root/indra/llui/lltextbase.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-08-10 14:02:21 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-08-10 14:02:21 +0100
commitc890ca021a49e52095e9a8de7db528e48c3da205 (patch)
tree1e5227e803980b3df83a77e0d0c39623e0fa2069 /indra/llui/lltextbase.cpp
parent60b12a24d4a6061a3fe22a433cb8852002a8e857 (diff)
parent20bdbd487e9c64ce553ad68d467b1100342fe6a1 (diff)
merge from PE's viewer-trunk
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r--indra/llui/lltextbase.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index cde08c7b19..3792f18c97 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -2723,7 +2723,10 @@ LLOnHoverChangeableTextSegment::LLOnHoverChangeableTextSegment( LLStyleConstSP s
F32 LLOnHoverChangeableTextSegment::draw(S32 start, S32 end, S32 selection_start, S32 selection_end, const LLRect& draw_rect)
{
F32 result = LLNormalTextSegment::draw(start, end, selection_start, selection_end, draw_rect);
- mStyle = mNormalStyle;
+ if (end == mEnd - mStart)
+ {
+ mStyle = mNormalStyle;
+ }
return result;
}