Skip to content

Commit

Permalink
[processing] fix crash in ConcaveHull alg when using it from console (f…
Browse files Browse the repository at this point in the history
…ix #12229)
  • Loading branch information
alexbruy committed Jan 13, 2016
1 parent ee093b2 commit 14c858a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/ConcaveHull.py
Expand Up @@ -66,7 +66,7 @@ def processAlgorithm(self, progress):
no_multigeom = self.getParameterValue(self.NO_MULTIGEOMETRY)
#Delaunay triangulation from input point layer
progress.setText(self.tr('Creating Delaunay triangles...'))
delone_triangles = processing.runalg("qgis:delaunaytriangulation", layer, None)['OUTPUT']
delone_triangles = processing.runalg("qgis:delaunaytriangulation", layer, None, progress=None)['OUTPUT']
delaunay_layer = processing.getObject(delone_triangles)
#get max edge length from Delaunay triangles
progress.setText(self.tr('Computing edges max length...'))
Expand Down Expand Up @@ -99,7 +99,7 @@ def processAlgorithm(self, progress):
#dissolve all Delaunay triangles
progress.setText(self.tr('Dissolving Delaunay triangles...'))
dissolved = processing.runalg("qgis:dissolve", delaunay_layer,
True, None, None)['OUTPUT']
True, None, None, progress=None)['OUTPUT']
dissolved_layer = processing.getObject(dissolved)
#save result
progress.setText(self.tr('Saving data...'))
Expand Down

0 comments on commit 14c858a

Please sign in to comment.