Fix a bug in OutlineListView::ItemUnderAt that made it pick totally wrong items when some things in the list were collapsed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35361 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -725,7 +725,7 @@ BListItem*
|
|||||||
BOutlineListView::ItemUnderAt(BListItem* underItem,
|
BOutlineListView::ItemUnderAt(BListItem* underItem,
|
||||||
bool oneLevelOnly, int32 index) const
|
bool oneLevelOnly, int32 index) const
|
||||||
{
|
{
|
||||||
int32 i = IndexOf(underItem);
|
int32 i = FullListIndexOf(underItem);
|
||||||
if (i == -1)
|
if (i == -1)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user