Skip to content

Handle edge case of empty bounds on _getBoundsCenterZoom#5157

Merged
perliedman merged 3 commits intomasterfrom
zero-bounds
May 11, 2017
Merged

Handle edge case of empty bounds on _getBoundsCenterZoom#5157
perliedman merged 3 commits intomasterfrom
zero-bounds

Conversation

@IvanSanchez
Copy link
Member

@IvanSanchez IvanSanchez commented Dec 1, 2016

Fixes #5153.

Lacking unit tests right now, should be able to whip up one. There's a unit test, and I've made sure that it fails without the fix.

Copy link
Member

@perliedman perliedman left a comment

Choose a reason for hiding this comment

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

This must be one of the narrowest (figuratively as well as literally ;)) use cases I've seen, but 👍 FIX ALL THE THINGS!

@perliedman perliedman merged commit 873d4ca into master May 11, 2017
@mourner mourner deleted the zero-bounds branch March 20, 2020 10:26
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.

Crash when fitBounds() to a zero-area bounds on uninitialized map

2 participants