Fix error when trying to run processing algs

Caused by trying to deepcopy a c++ object. This is a temporary
fix - when the next part of the processing/c++ work lands algorithm
copies will no longer be required
This commit is contained in:
Nyall Dawson 2017-04-07 09:36:45 +10:00
parent 85b38e36eb
commit 0e72fe0591

2
python/plugins/processing/core/GeoAlgorithm.py Normal file → Executable file
View File

@ -82,7 +82,7 @@ class GeoAlgorithm(QgsProcessingAlgorithm):
"""Returns a new instance of this algorithm, ready to be used
for being executed.
"""
newone = copy.copy(self)
newone = self
newone.parameters = copy.deepcopy(self.parameters)
newone.outputs = copy.deepcopy(self.outputs)
return newone