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

[Backport release-3_34] [processing] Don't try to interpret distance widget value as CRS #56297

Merged
merged 1 commit into from Feb 11, 2024

Conversation

qgis-bot
Copy link
Collaborator

Backport #56292
Authored by: @nyalldawson

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.34.4 milestone Feb 11, 2024
@nyalldawson nyalldawson merged commit 7f4de41 into release-3_34 Feb 11, 2024
31 checks passed
@nyalldawson nyalldawson deleted the backport-56292-to-release-3_34 branch February 11, 2024 10:05
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.

None yet

3 participants