Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed invalid next responder check if not found #233

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adrum
Copy link

@adrum adrum commented Aug 13, 2015

A bug exists when indexPathForNextResponderInSectionIndex: on RETableViewCell.m if the sections do not match. If not, the value is set to -1. The for loop below automaticall adds 1 to the unsigned -1, which makes it 0. Thus, the for loop condition was met when it shouldn't have been.

By setting it to -2 then subtracting the number of items in the section, the for loop conidition will never be met when the section is not equal.

A bug exists when indexPathForNextResponderInSectionIndex: on RETableViewCell.m if the sections do not match. If not, the value is set to -1. The for loop below automaticall adds 1 to the unsigned -1, which makes it 0. Thus, the for loop condition was met when it shouldn't have been.

By setting it to -2 then subtracting the number of items in the section, the for loop conidition will never be met when the section is not equal.
@XBeg9
Copy link
Collaborator

XBeg9 commented Apr 25, 2016

@adrum please make your branch up to date with master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants