ifix for issue #500

This commit is contained in:
rfm 2025-04-01 19:42:50 +01:00
parent 0057f3f4e9
commit b39853e21a
3 changed files with 18 additions and 3 deletions

View file

@ -1415,12 +1415,12 @@ static SEL remSel;
if (count > 0)
{
NSUInteger i;
IMP rem = [self methodForSelector: remSel];
for (i = 0; i < count; i++)
while (count-- > 0)
{
NSUInteger idx = indexArray[i];
NSUInteger idx = indexArray[count];
(*rem)(self, remSel, idx);
}
}