Navigation Menu

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 github-actions[bot] committed Apr 24, 2023
1 parent 9d2fa2c commit df3f887
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 df3f887

Please sign in to comment.