diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-09-28 22:44:58 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-09-28 22:44:58 +0100 |
commit | 443cf1f72e443c62c0ed92e629b040bb50dd7b58 (patch) | |
tree | 63a31ff19489c4fa4c1405d6c4bba6450fdc02ee /indra/newview/llpanellandmarks.cpp | |
parent | b906a7a76aea1d06829237be3cb5336961f7dfce (diff) | |
parent | 0a938d395c6bde13ead4f789056e7f9067e4dbd0 (diff) |
merge storm-266
Diffstat (limited to 'indra/newview/llpanellandmarks.cpp')
-rw-r--r-- | indra/newview/llpanellandmarks.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llpanellandmarks.cpp b/indra/newview/llpanellandmarks.cpp index b09360a2d6..c4a484d368 100644 --- a/indra/newview/llpanellandmarks.cpp +++ b/indra/newview/llpanellandmarks.cpp @@ -1245,7 +1245,12 @@ void LLLandmarksPanel::doProcessParcelInfo(LLLandmark* landmark, landmark->getGlobalPos(landmark_global_pos); // let's toggle pick panel into panel places - LLPanel* panel_places = LLSideTray::getInstance()->getChild<LLPanel>("panel_places");//-> sidebar_places + LLPanel* panel_places = LLSideTray::getInstance()->getPanel("panel_places");//-> sidebar_places + if (!panel_places) + { + llassert(NULL != panel_places); + return; + } panel_places->addChild(panel_pick); LLRect paren_rect(panel_places->getRect()); panel_pick->reshape(paren_rect.getWidth(),paren_rect.getHeight(), TRUE); |