aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui')
-rw-r--r--linden/indra/llui/llscrolllistctrl.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/linden/indra/llui/llscrolllistctrl.cpp b/linden/indra/llui/llscrolllistctrl.cpp
index 41b50c2..307d045 100644
--- a/linden/indra/llui/llscrolllistctrl.cpp
+++ b/linden/indra/llui/llscrolllistctrl.cpp
@@ -1109,11 +1109,15 @@ BOOL LLScrollListCtrl::selectItemRange( S32 first_index, S32 last_index )
1109 1109
1110 BOOL success = FALSE; 1110 BOOL success = FALSE;
1111 S32 index = 0; 1111 S32 index = 0;
1112 for (item_list::iterator iter = mItemList.begin(); iter != mItemList.end(); iter++) 1112 for (item_list::iterator iter = mItemList.begin(); iter != mItemList.end(); )
1113 { 1113 {
1114 LLScrollListItem *itemp = *iter; 1114 LLScrollListItem *itemp = *iter;
1115 1115 if(!itemp)
1116 llassert_always(itemp) ; 1116 {
1117 iter = mItemList.erase(iter);
1118 continue ;
1119 }
1120
1117 if( index >= first_index && index <= last_index ) 1121 if( index >= first_index && index <= last_index )
1118 { 1122 {
1119 if( itemp->getEnabled() ) 1123 if( itemp->getEnabled() )
@@ -1127,6 +1131,7 @@ BOOL LLScrollListCtrl::selectItemRange( S32 first_index, S32 last_index )
1127 deselectItem(itemp); 1131 deselectItem(itemp);
1128 } 1132 }
1129 index++; 1133 index++;
1134 iter++ ;
1130 } 1135 }
1131 1136
1132 if (mCommitOnSelectionChange) 1137 if (mCommitOnSelectionChange)