Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Bugfix] Processing plugin: bad check layer from QgsProcessingOutputM…
…ultipleLayers

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.
  • Loading branch information
rldhont authored and nyalldawson committed Apr 24, 2023
1 parent 9d2fa2c commit 763f5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/Processing.py
Expand Up @@ -208,7 +208,7 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
if result:
layers_result = []
for l in result:
if not isinstance(result, QgsMapLayer):
if not isinstance(l, QgsMapLayer):
layer = context.takeResultLayer(l) # transfer layer ownership out of context
if layer:
layers_result.append(layer)
Expand Down

0 comments on commit 763f5c2

Please sign in to comment.