Temporarily revert that last change since it breaks the IM Kit's preflet for reasons I don't yet understand. Investigating.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28695 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2008-11-19 05:11:37 +00:00
parent 128cb2f6f3
commit 4e0a1b40ad

View File

@ -733,13 +733,7 @@ BListView::ItemAt(int32 index) const
int32
BListView::IndexOf(BListItem *item) const
{
if (item != NULL) {
BPoint point(0.0, item->Top());
int32 index = IndexOf(point);
if (index >= 0 && fList.ItemAt(index) == item)
return index;
}
return -1;
return fList.IndexOf(item);
}
// IndexOf
@ -785,7 +779,7 @@ BListView::LastItem() const
bool
BListView::HasItem(BListItem *item) const
{
return IndexOf(item) != -1;
return fList.HasItem(item);
}
// CountItems
@ -1350,9 +1344,10 @@ BListView::_FontChanged()
{
BFont font;
GetFont(&font);
for (int32 i = 0; i < CountItems(); i++)
for (int32 i = 0; i < CountItems(); i++) {
ItemAt(i)->SetTop((i > 0) ? ItemAt(i - 1)->Bottom() + 1.0 : 0.0);
ItemAt(i)->Update(this, &font);
_RecalcItemTops(0);
}
}