Rescan the selection range after doing a swap.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24164 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2008-02-28 00:52:20 +00:00
parent 681835d2df
commit 396b8a0dc2

View File

@ -855,7 +855,7 @@ BOutlineListView::_SwapItems(int32 first, int32 second)
int32 secondIndex = max_c(first, second);
BListItem *firstItem = ItemAt(firstIndex);
BListItem *secondItem = ItemAt(secondIndex);
if (Superitem(firstItem) != Superitem(secondItem))
return false;
@ -880,6 +880,7 @@ BOutlineListView::_SwapItems(int32 first, int32 second)
_DoSwap(fList, firstIndex, secondIndex, firstCount, secondCount, index);
_RecalcItemTops(firstIndex);
_RescanSelection(firstIndex, secondIndex + secondCount);
Invalidate(Bounds());
return true;
}