summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Savchuk <vsavchuk@productengine.com>2010-01-05 19:32:25 +0200
committerVadim Savchuk <vsavchuk@productengine.com>2010-01-05 19:32:25 +0200
commit21d5410d1ad607fd4e173b15c9cedaf04668817e (patch)
tree866dbb4d898b0ebad7cd0a70a159145d05708946
parentddf2cccdb926ca2aac226a90c4030f2d4e8c6f50 (diff)
Fixed potential crash if LLFlatListView is created as a dummy widget.
--HG-- branch : product-engine
-rw-r--r--indra/llui/llflatlistview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/llflatlistview.cpp b/indra/llui/llflatlistview.cpp
index 3754d155cf..9cfc67af14 100644
--- a/indra/llui/llflatlistview.cpp
+++ b/indra/llui/llflatlistview.cpp
@@ -906,7 +906,8 @@ void LLFlatListView::notifyParentItemsRectChanged()
params["width"] = req_rect.getWidth();
params["height"] = req_rect.getHeight();
- getParent()->notifyParent(params);
+ if (getParent()) // dummy widgets don't have a parent
+ getParent()->notifyParent(params);
}
void LLFlatListView::setNoItemsCommentVisible(bool visible) const