Skip to content
Browse files

[processing] fix progress reporting (fix #15521)

(cherry picked from commit b14dfa65fe8c5db852bac0899f8aac64b91faada)
  • Loading branch information
alexbruy committed Sep 13, 2016
1 parent f7a1dcd commit ee9c684a6c66d8d4175ec2f069b767940d3e04d8
@@ -66,7 +66,7 @@ def processAlgorithm(self, progress):

# Delaunay triangulation from input point layer
progress.setText('Creating Delaunay triangles...'))
delone_triangles = processing.runalg("qgis:delaunaytriangulation", layer, None, progress=None)['OUTPUT']
delone_triangles = processing.runalg("qgis:delaunaytriangulation", layer, None)['OUTPUT']
delaunay_layer = processing.getObject(delone_triangles)

# Get max edge length from Delaunay triangles
@@ -103,7 +103,7 @@ def processAlgorithm(self, progress):
# Dissolve all Delaunay triangles
progress.setText('Dissolving Delaunay triangles...'))
dissolved = processing.runalg("qgis:dissolve", delaunay_layer,
True, None, None, progress=None)['OUTPUT']
True, None, None)['OUTPUT']
dissolved_layer = processing.getObject(dissolved)

# Save result
@@ -171,9 +171,6 @@ def setText(self, text):
self.setInfo(text, False)

def error(self, text):
self.setInfo(text, error=True)

def setParamValues(self):

0 comments on commit ee9c684

Please sign in to comment.
You can’t perform that action at this time.