summaryrefslogtreecommitdiff
path: root/indra/newview/llnearbychat.cpp
diff options
context:
space:
mode:
authorYuri Chebotarev <ychebotarev@productengine.com>2009-11-05 13:17:12 +0200
committerYuri Chebotarev <ychebotarev@productengine.com>2009-11-05 13:17:12 +0200
commitf8d1644a4132356c2a0220110b9d9bc981f73b16 (patch)
treea63b6e320b27351184a2ee489f8b4d2dd77c09f5 /indra/newview/llnearbychat.cpp
parent15df55ecafd2f6d72f25988401ddb7ed58030b79 (diff)
fix for major bug ext-2209 Nearby Chat log is broken
--HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llnearbychat.cpp')
-rw-r--r--indra/newview/llnearbychat.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llnearbychat.cpp b/indra/newview/llnearbychat.cpp
index 81d033d7f9..c68d3fe023 100644
--- a/indra/newview/llnearbychat.cpp
+++ b/indra/newview/llnearbychat.cpp
@@ -107,12 +107,14 @@ BOOL LLNearbyChat::postBuild()
void LLNearbyChat::applySavedVariables()
{
-
if (mRectControl.size() > 1)
{
const LLRect& rect = LLUI::sSettingGroups["floater"]->getRect(mRectControl);
- reshape(rect.getWidth(), rect.getHeight());
- setRect(rect);
+ if(!rect.isEmpty() && rect.isValid())
+ {
+ reshape(rect.getWidth(), rect.getHeight());
+ setRect(rect);
+ }
}