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

[processing] Don't try to interpret distance widget value as CRS #56292

Merged
merged 1 commit into from Feb 11, 2024

Conversation

nyalldawson
Copy link
Collaborator

There was a logic error in QgsProcessingDistanceWidgetWrapper::setUnitParameterValue which meant that when the linked crs parameter value was unset, we incorrectly took the default value from the DISTANCE parameter and tried to intrepret it as a CRS.

In practice, this meant we'd take a value like "100" and then try to turn that into a CRS. Since it doesn't match any possible CRS definition, the fallback code would try to interpret it as a map layer and ultimately try to load "100" as a OGR vector layer.

No real issue in doing that, but it results in a bunch of silly debug spam...!

@github-actions github-actions bot added this to the 3.36.0 milestone Feb 10, 2024
There was a logic error in QgsProcessingDistanceWidgetWrapper::setUnitParameterValue
which meant that when the linked crs parameter value was unset,
we incorrectly took the default value from the DISTANCE parameter
and tried to intrepret it as a CRS.

In practice, this meant we'd take a value like "100" and then
try to turn that into a CRS. Since it doesn't match any possible
CRS definition, the fallback code would try to interpret it as
a map layer and ultimately try to load "100" as a OGR vector
layer.

No real issue in doing that, but it results in a bunch of silly
debug spam...!
Copy link

🪟 Windows builds ready!

Windows builds of this PR are available for testing here. Debug symbols for this build are available here.

(Built from commit 40abec0)

@nyalldawson nyalldawson merged commit f68804f into qgis:master Feb 11, 2024
34 checks passed
@nyalldawson nyalldawson deleted the fix_load_distance branch February 11, 2024 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants