Skip to content

Commit 763f5c2

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 9d2fa2c commit 763f5c2

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
@@ -208,7 +208,7 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
208208
if result:
209209
layers_result = []
210210
for l in result:
211-
if not isinstance(result, QgsMapLayer):
211+
if not isinstance(l, QgsMapLayer):
212212
layer = context.takeResultLayer(l) # transfer layer ownership out of context
213213
if layer:
214214
layers_result.append(layer)

0 commit comments

Comments
 (0)
Please sign in to comment.