diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llui/llscrolllistctrl.cpp | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/llui/llscrolllistctrl.cpp')
-rw-r--r-- | linden/indra/llui/llscrolllistctrl.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linden/indra/llui/llscrolllistctrl.cpp b/linden/indra/llui/llscrolllistctrl.cpp index 32c4e82..9693df4 100644 --- a/linden/indra/llui/llscrolllistctrl.cpp +++ b/linden/indra/llui/llscrolllistctrl.cpp | |||
@@ -43,7 +43,7 @@ | |||
43 | #include "llclipboard.h" | 43 | #include "llclipboard.h" |
44 | #include "llfocusmgr.h" | 44 | #include "llfocusmgr.h" |
45 | #include "llgl.h" | 45 | #include "llgl.h" |
46 | #include "llglimmediate.h" | 46 | #include "llrender.h" |
47 | #include "llglheaders.h" | 47 | #include "llglheaders.h" |
48 | #include "llresmgr.h" | 48 | #include "llresmgr.h" |
49 | #include "llscrollbar.h" | 49 | #include "llscrollbar.h" |
@@ -1117,9 +1117,7 @@ BOOL LLScrollListCtrl::selectItemRange( S32 first_index, S32 last_index ) | |||
1117 | if( itemp->getEnabled() ) | 1117 | if( itemp->getEnabled() ) |
1118 | { | 1118 | { |
1119 | selectItem(itemp, FALSE); | 1119 | selectItem(itemp, FALSE); |
1120 | success = TRUE; | 1120 | success = TRUE; |
1121 | if (!success) | ||
1122 | mOriginalSelection = first_index; | ||
1123 | } | 1121 | } |
1124 | } | 1122 | } |
1125 | else | 1123 | else |
@@ -1198,7 +1196,7 @@ void LLScrollListCtrl::deleteItems(const LLSD& sd) | |||
1198 | mLastSelected = NULL; | 1196 | mLastSelected = NULL; |
1199 | } | 1197 | } |
1200 | delete itemp; | 1198 | delete itemp; |
1201 | mItemList.erase(iter++); | 1199 | iter = mItemList.erase(iter); |
1202 | } | 1200 | } |
1203 | else | 1201 | else |
1204 | { | 1202 | { |