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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user