Skip to content

Commit

Permalink
[processing] Fix double-evaluation of warp output parameter
Browse files Browse the repository at this point in the history
Causes an incorrect warning about layer not being generated to appear
after running the algorithm

Fixes #30095
  • Loading branch information
nyalldawson committed May 26, 2020
1 parent bd8b94a commit adeca2f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/plugins/processing/algs/gdal/warp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit adeca2f

Please sign in to comment.