Skip to content


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

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 github-actions[bot] committed Apr 24, 2023
1 parent a8eb21d commit d7719b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/
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:
Expand Down

0 comments on commit d7719b3

Please sign in to comment.