From 0d4d8254c16585de90d19576c8cd9dbabf27f66a Mon Sep 17 00:00:00 2001 From: Andrea Giudiceandrea Date: Thu, 9 Jan 2020 09:28:56 +0100 Subject: [PATCH] [SAGA] Fix saga_cmd command with multiple outputs Fixes a regression bug accidentally introduced with 40134d6473fcdbd8b6f53c3ea3db01e2dd606419 (PR #8968) and backported with a887b7d34bfa44a8400bcaa986ede96e15a760c9 (PR #9231): when there are multiple output parameters processAlgorithm incorrectly generates multiple saga_cmd commands, instead of a single command containing the output parameters. Fixes #33658 --- python/plugins/processing/algs/saga/SagaAlgorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plugins/processing/algs/saga/SagaAlgorithm.py b/python/plugins/processing/algs/saga/SagaAlgorithm.py index 2226f4a47d3..51c858a6735 100644 --- a/python/plugins/processing/algs/saga/SagaAlgorithm.py +++ b/python/plugins/processing/algs/saga/SagaAlgorithm.py @@ -326,7 +326,7 @@ class SagaAlgorithm(SagaAlgorithmBase): output_files[out.name()] = filePath command += ' -{} "{}"'.format(out.name(), filePath) - commands.append(command) + commands.append(command) # special treatment for RGB algorithm # TODO: improve this and put this code somewhere else