Skip to content

Commit

Permalink
[Bugfix] Processing plugin: bad check layer from QgsProcessingOutputM…
Browse files Browse the repository at this point in the history
…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 68fac0e commit 41a95bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/Processing.py
Expand Up @@ -200,7 +200,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 41a95bf

Please sign in to comment.