From 8aad1bff7ca28d1ec140aaf60142df5735543b85 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 9 Feb 2006 07:55:55 +0000 Subject: [PATCH] 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 --- src/kits/interface/Shelf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/Shelf.cpp b/src/kits/interface/Shelf.cpp index 055677f1ff..65f3544245 100644 --- a/src/kits/interface/Shelf.cpp +++ b/src/kits/interface/Shelf.cpp @@ -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;