Author: pulkomandy Date: 2010-01-31 19:06:59 +0100 (Sun, 31 Jan 2010) New Revision: 35361 Changeset: http://dev.haiku-os.org/changeset/35361/haiku Modified: haiku/trunk/src/kits/interface/OutlineListView.cpp Log: Fix a bug in OutlineListView::ItemUnderAt that made it pick totally wrong items when some things in the list were collapsed. Modified: haiku/trunk/src/kits/interface/OutlineListView.cpp =================================================================== --- haiku/trunk/src/kits/interface/OutlineListView.cpp 2010-01-31 17:32:12 UTC (rev 35360) +++ haiku/trunk/src/kits/interface/OutlineListView.cpp 2010-01-31 18:06:59 UTC (rev 35361) @@ -725,7 +725,7 @@ BOutlineListView::ItemUnderAt(BListItem* underItem, bool oneLevelOnly, int32 index) const { - int32 i = IndexOf(underItem); + int32 i = FullListIndexOf(underItem); if (i == -1) return NULL;