From adeca2f586203913ae3702531b32579ed4c14344 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 26 May 2020 12:01:24 +1000 Subject: [PATCH] [processing] Fix double-evaluation of warp output parameter Causes an incorrect warning about layer not being generated to appear after running the algorithm Fixes #30095 --- python/plugins/processing/algs/gdal/warp.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/plugins/processing/algs/gdal/warp.py b/python/plugins/processing/algs/gdal/warp.py index b694ff00bdea..63a57cdfd426 100644 --- a/python/plugins/processing/algs/gdal/warp.py +++ b/python/plugins/processing/algs/gdal/warp.py @@ -175,8 +175,6 @@ def getConsoleCommands(self, parameters, context, feedback, executing=True): if inLayer is None: raise QgsProcessingException(self.invalidRasterError(parameters, self.INPUT)) - out = self.parameterAsOutputLayer(parameters, self.OUTPUT, context) - self.setOutputValue(self.OUTPUT, out) sourceCrs = self.parameterAsCrs(parameters, self.SOURCE_CRS, context) targetCrs = self.parameterAsCrs(parameters, self.TARGET_CRS, context) if self.NODATA in parameters and parameters[self.NODATA] is not None: