Skip to content
Permalink
Browse files

[processing] Fix in-place mode results in unknown distance units

We need to still create the parameter wrappers when in in-place mode
for the input/output parameters, as some other wrappers may rely
on these for various interactions (e.g. getting the crs/fields
from the input layer)

Fixes #19990
  • Loading branch information
nyalldawson committed Oct 2, 2018
1 parent 5e1348b commit 57f77d01cb9adb4042fb66a0b953c2cb8a225bfa
Showing with 7 additions and 3 deletions.
  1. +7 −3 python/plugins/processing/gui/ParametersPanel.py
@@ -134,9 +134,6 @@ def initWidgets(self):
if param.flags() & QgsProcessingParameterDefinition.FlagHidden:
continue

if self.in_place and param.name() in ('INPUT', 'OUTPUT'):
continue

if param.isDestination():
continue
else:
@@ -155,6 +152,13 @@ def initWidgets(self):
else:
widget = wrapper.widget

if self.in_place and param.name() in ('INPUT', 'OUTPUT'):
# don't show the input/output parameter widgets in in-place mode
# we still need to CREATE them, because other wrappers may need to interact
# with them (e.g. those parameters which need the input layer for field
# selections/crs properties/etc)
continue

if widget is not None:
if is_python_wrapper:
widget.setToolTip(param.toolTip())

0 comments on commit 57f77d0

Please sign in to comment.
You can’t perform that action at this time.