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 color palette failure in certain scenarios #101

Conversation

philipbelesky
Copy link
Collaborator

@philipbelesky philipbelesky commented Mar 14, 2022

In cases where the size of swatchCount exceeds that of gradientRange, the ValueSpan of a colour theme can then become 0. When computing linear ranges, the progress calculation will then fail with a Not a Number error. This only seemed to crop up when using Viridis with a particularly wide set of possible elevations.

@philipbelesky philipbelesky changed the base branch from master to feature/SandWorm2-0 March 14, 2022 04:53
@mariuszhermansdorfer mariuszhermansdorfer merged commit 194c9d6 into mariuszhermansdorfer:feature/SandWorm2-0 Mar 23, 2022
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