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

Fix bug with double zoom initialisation #76

Merged
merged 3 commits into from
Sep 19, 2020
Merged

Conversation

apontzen
Copy link
Member

@apontzen apontzen commented Sep 3, 2020

This bug could cause a cryptic error to be issued when the second-level-zoom was not close-to-centred within the first-level-zoom.

Specifically, when calculating zoom windows, it was assumed that wrapping was available. But
when a second-level zoom is opened, it is embedded in a domain that cannot be wrapped.
The code would calculate a window that was only valid if wrapping were available, then
correctly complain that the window lay outside the grid above.

Solution is to clamp the window so that it can't go outside the grid above unless that
grid is in fact the base-level grid.

Add test
Will need to update Travis environment to use py3 later
@apontzen apontzen merged commit 021109f into master Sep 19, 2020
@apontzen apontzen deleted the double-zooms-near-edges branch August 8, 2021 19:27
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.

1 participant