Skip to content
Permalink
Browse files

[processing] avoid division by zero in random points alg (fix #11215)

  • Loading branch information
alexbruy committed Sep 19, 2014
1 parent 8c327ed commit cc307578eb83bd454b389d0e5f8c3e68021cc4fe
Showing with 3 additions and 0 deletions.
  1. +3 −0 python/plugins/processing/algs/qgis/RandomPointsPolygonsVariable.py
@@ -92,6 +92,9 @@ def processAlgorithm(self, progress):
else:
pointCount = int(round(f[fieldName] * da.measure(fGeom)))

if strategy == 0 and pointCount == 0:
continue

index = QgsSpatialIndex()
points = dict()

0 comments on commit cc30757

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