Skip to content
Permalink
Browse files
[processing] prevent divizion by zero (fix #15825)
  • Loading branch information
alexbruy committed Dec 5, 2016
1 parent 2fea23f commit 62cb38153cbf4981f59a6d04114307af19fc3496
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/plugins/processing/algs/qgis/VoronoiPolygons.py
@@ -108,6 +108,10 @@ def processAlgorithm(self, progress):
inFeat = QgsFeature()

current = 0
if len(c.polygons) == 0:
raise GeoAlgorithmExecutionException(
self.tr('There were no polygons created.'))

total = 100.0 / len(c.polygons)

for (site, edges) in list(c.polygons.items()):

0 comments on commit 62cb381

Please sign in to comment.