Skip to content

Commit 41a95bf

Browse files
rldhontnyalldawson
authored andcommittedApr 24, 2023
[Bugfix] Processing plugin: bad check layer from QgsProcessingOutputMultipleLayers
After running algorithm, the processing plugin take the layer from result to provide map layer instead of string. In the case of QgsProcessingOutputMultipleLayers, the instance check is not done on the layer but on an array.
1 parent 68fac0e commit 41a95bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/core/Processing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
200200
if result:
201201
layers_result = []
202202
for l in result:
203-
if not isinstance(result, QgsMapLayer):
203+
if not isinstance(l, QgsMapLayer):
204204
layer = context.takeResultLayer(l) # transfer layer ownership out of context
205205
if layer:
206206
layers_result.append(layer)

0 commit comments

Comments
 (0)