Skip to content

Commit

Permalink
[processing] avoid division by zero in random points alg (fix #11215)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Sep 19, 2014
1 parent 8c327ed commit cc30757
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit cc30757

Please sign in to comment.