mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[processing] avoid division by zero in random points alg (fix #11215)
This commit is contained in:
parent
8c327ed35e
commit
cc307578eb
@ -92,6 +92,9 @@ class RandomPointsPolygonsVariable(GeoAlgorithm):
|
||||
else:
|
||||
pointCount = int(round(f[fieldName] * da.measure(fGeom)))
|
||||
|
||||
if strategy == 0 and pointCount == 0:
|
||||
continue
|
||||
|
||||
index = QgsSpatialIndex()
|
||||
points = dict()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user