Skip to content

Commit 57f77d0

Browse files
committedOct 2, 2018
[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
1 parent 5e1348b commit 57f77d0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎python/plugins/processing/gui/ParametersPanel.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ def initWidgets(self):
134134
if param.flags() & QgsProcessingParameterDefinition.FlagHidden:
135135
continue
136136

137-
if self.in_place and param.name() in ('INPUT', 'OUTPUT'):
138-
continue
139-
140137
if param.isDestination():
141138
continue
142139
else:
@@ -155,6 +152,13 @@ def initWidgets(self):
155152
else:
156153
widget = wrapper.widget
157154

155+
if self.in_place and param.name() in ('INPUT', 'OUTPUT'):
156+
# don't show the input/output parameter widgets in in-place mode
157+
# we still need to CREATE them, because other wrappers may need to interact
158+
# with them (e.g. those parameters which need the input layer for field
159+
# selections/crs properties/etc)
160+
continue
161+
158162
if widget is not None:
159163
if is_python_wrapper:
160164
widget.setToolTip(param.toolTip())

0 commit comments

Comments
 (0)
Please sign in to comment.