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

check project scales and replace scale 0 with scale 1 #3813

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

nworr
Copy link
Contributor

@nworr nworr commented Jul 28, 2023

When the user set the projects min scale to 0, it leads to a fatal "Division by zero" error :

see

while ($scaleDenominator > $minScale) {

scaledenomiator will be divided until having out of bound value : 0

Fix is done on the plugin side 3liz/lizmap-plugin@392299a, but old projects conf may still have the 0 value

Funded by 3Liz

@github-actions github-actions bot added this to the 3.7.0 milestone Jul 28, 2023
@nworr nworr force-pushed the normalize-prj-scale-lizmaptiler branch from 5e4e520 to f2fcfb6 Compare July 31, 2023 07:00
@nworr nworr force-pushed the normalize-prj-scale-lizmaptiler branch from f2fcfb6 to 70a280b Compare July 31, 2023 07:06
@nworr nworr requested a review from mdouchin July 31, 2023 07:07
Co-authored-by: mdouchin <mdouchin@3liz.com>
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