Skip to content

Commit

Permalink
[processing] prevent division by zero in random points in polygons fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Apr 19, 2017
1 parent 3b5b191 commit 1016119
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -102,6 +102,9 @@ def processAlgorithm(self, feedback):
else:
pointCount = int(round(value * da.measureArea(fGeom)))

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

index = QgsSpatialIndex()
points = dict()

Expand Down

0 comments on commit 1016119

Please sign in to comment.