aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:55 -0500
committerJacek Antonelli2008-08-15 23:45:55 -0500
commit9063e60aefe54f7c45aaa8cb24e8998b2c7343ab (patch)
tree1c8235465701c910a5d76448ddc8eb1f14457ebc /linden/indra/llui
parentSecond Life viewer sources 1.20.9 (diff)
downloadmeta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.zip
meta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.tar.gz
meta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.tar.bz2
meta-impy-9063e60aefe54f7c45aaa8cb24e8998b2c7343ab.tar.xz
Second Life viewer sources 1.20.10
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)