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

Invert comparison operators in CellView.Size() #554

Merged
merged 1 commit into from
Sep 11, 2022

Conversation

chrBrd
Copy link
Contributor

@chrBrd chrBrd commented Sep 8, 2022

Fixes #553

This function is supposed to return a minimum 2x2 square. However, as the comparison operators are the wrong way around a maximum 2x2 square is returned instead. Inverting the comparison operators fixes the issue.

Fixes gdamore#553

This function is supposed to return a minimum 2x2 square. However, as the comparison operators are the wrong way around a maximum 2x2 square is returned instead. Inverting the comparison operators fixes the issue.
Copy link
Owner

@gdamore gdamore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how this got by me. Thanks for fixing it.

@gdamore gdamore merged commit 96bb70f into gdamore:master Sep 11, 2022
@chrBrd chrBrd deleted the fix-#553 branch September 17, 2022 16:43
@chrBrd
Copy link
Contributor Author

chrBrd commented Sep 17, 2022

No problem at all. :)

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.

CellView.Size() clips all models to a maximum of 2x2 cells
2 participants