diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-04-02 12:35:24 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-04-02 12:35:24 +0100 |
commit | e46f128d20f155b7bae7edb3aeac2a9653c1a433 (patch) | |
tree | f26e41a3528da449248c0a328f9755aeb7d3e988 /indra/newview/llpaneloutfitedit.cpp | |
parent | a7085418df1ada6e19b94b6df772ed21e663d119 (diff) | |
parent | 32283a93e08a27e179486a5162367885131dffba (diff) |
PE merge
Diffstat (limited to 'indra/newview/llpaneloutfitedit.cpp')
-rw-r--r-- | indra/newview/llpaneloutfitedit.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llpaneloutfitedit.cpp b/indra/newview/llpaneloutfitedit.cpp index ba22adc01c..2b25c544e3 100644 --- a/indra/newview/llpaneloutfitedit.cpp +++ b/indra/newview/llpaneloutfitedit.cpp @@ -413,7 +413,11 @@ void LLPanelOutfitEdit::onLookItemSelectionChange(void) { S32 left_offset = -4; S32 top_offset = -10; - LLRect rect = mLookContents->getLastSelectedItem()->getRect(); + LLScrollListItem* item = mLookContents->getLastSelectedItem(); + if (!item) + return; + + LLRect rect = item->getRect(); LLRect btn_rect( left_offset + rect.mRight - 50, top_offset + rect.mTop, |