summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2015-11-02 12:34:59 -0800
committerRider Linden <rider@lindenlab.com>2015-11-02 12:34:59 -0800
commit8866ba3a7f6c463fe9bf56630a6677206824e603 (patch)
tree8e4560d513cb8ac25bbd90eaf81968e6a9bd28cf /indra/newview/llviewermessage.cpp
parentd4576e987f235e3e96516db1f342cbcf7e4c36e9 (diff)
MAINT-5812: Correctly pull a string from the raw body. Only compare languages if detected_language is blank.
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rwxr-xr-xindra/newview/llviewermessage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 7000dcf21b..d995ce4cdf 100755
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -3496,7 +3496,7 @@ void translateSuccess(LLChat chat, LLSD toastArgs, std::string originalMsg, std:
{
// filter out non-interesting responses
if (!translation.empty()
- && (expectLang != detected_language)
+ && ((detected_language.empty()) || (expectLang != detected_language))
&& (LLStringUtil::compareInsensitive(translation, originalMsg) != 0))
{
chat.mText += " (" + translation + ")";