[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
This commit is contained in:
Andrea Giudiceandrea 2020-01-09 09:28:56 +01:00 committed by Nyall Dawson
parent 40b102fcce
commit 0d4d8254c1

View File

@ -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