Fixed another off-by-one bug which caused replicants to be shifted in a weird way if deskbar was moved around.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16304 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-02-09 07:55:55 +00:00
parent b5d904cbf3
commit 8aad1bff7c
+2 -1
View File
@@ -179,9 +179,10 @@ _rep_data_::index_of(BList const *list, BMessage const *msg)
{
int32 i = 0;
_rep_data_ *item;
while ((item = (_rep_data_*)list->ItemAt(i++)) != NULL) {
while ((item = (_rep_data_*)list->ItemAt(i)) != NULL) {
if (item->fMessage == msg)
return i;
i++;
}
return -1;