Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d7719b3

Browse files
rldhontgithub-actions[bot]
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 a8eb21d commit d7719b3

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
@@ -200,7 +200,7 @@ def runAlgorithm(algOrName, parameters, onFinish=None, feedback=None, context=No
200200
if result:
201201
layers_result = []
202202
for l in result:
203-
if not isinstance(result, QgsMapLayer):
203+
if not isinstance(l, QgsMapLayer):
204204
layer = context.takeResultLayer(l) # transfer layer ownership out of context
205205
if layer:
206206
layers_result.append(layer)

0 commit comments

Comments
 (0)
Please sign in to comment.