diff options
Diffstat (limited to 'indra/llui/lluistring.cpp')
-rw-r--r-- | indra/llui/lluistring.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llui/lluistring.cpp b/indra/llui/lluistring.cpp index ce73990d27..7ce0fd7a88 100644 --- a/indra/llui/lluistring.cpp +++ b/indra/llui/lluistring.cpp @@ -112,6 +112,13 @@ void LLUIString::clear() void LLUIString::format() { + // optimize for empty strings (don't attempt string replacement) + if (mOrig.empty()) + { + mResult.clear(); + mWResult.clear(); + return; + } mResult = mOrig; // get the defailt args + local args |