From 83e87eda40b1b2f6724ac5b101083e173d6f939b Mon Sep 17 00:00:00 2001 From: Nicky Date: Tue, 12 Mar 2013 11:39:11 +0100 Subject: [PATCH] Crashfix for tabcontainer without a tab. --- indra/llui/lltabcontainer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/indra/llui/lltabcontainer.cpp b/indra/llui/lltabcontainer.cpp index ea34d478b0..209df896f5 100644 --- a/indra/llui/lltabcontainer.cpp +++ b/indra/llui/lltabcontainer.cpp @@ -848,6 +848,9 @@ BOOL LLTabContainer::handleKeyHere(KEY key, MASK mask) // virtual BOOL LLTabContainer::handleScrollWheel(S32 x, S32 y, S32 clicks) { + if( 0 == getTabCount() ) + return LLUICtrl::handleScrollWheel(x, y, clicks); + LLTabTuple* firsttuple = getTab(0); static LLUICachedControl tabcntrv_pad ("UITabCntrvPad", 0); BOOL has_scroll_arrows = (getMaxScrollPos() > 0);