Fixed wrong selection updating when adding items - this fixes bug #279.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16993 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-04-03 22:57:23 +00:00
parent 52f8cb492d
commit 227bf1b686
2 changed files with 18 additions and 17 deletions
+2 -2
View File
@@ -225,9 +225,9 @@ BOutlineListView::AddItem(BListItem* item, int32 fullListIndex)
return true;
}
int32 list_index = FindPreviousVisibleIndex(fullListIndex);
int32 listIndex = FindPreviousVisibleIndex(fullListIndex);
return BListView::AddItem(item, IndexOf(FullListItemAt(list_index)) + 1);
return BListView::AddItem(item, IndexOf(FullListItemAt(listIndex)) + 1);
}