mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[BACKPORT]fix RandomPoints crash when there are NULL values in
attributes
This commit is contained in:
parent
f3d5387edb
commit
ccea540242
@ -160,6 +160,8 @@ class Dialog(QDialog, Ui_Dialog):
|
||||
points = []
|
||||
i = 1
|
||||
count = 40.00
|
||||
if n == 0:
|
||||
return []
|
||||
add = ( 70.00 - 40.00 ) / n
|
||||
while i <= n:
|
||||
pGeom = QgsGeometry().fromPoint(QgsPoint(xmin + (xmax-xmin) * random(), ymin + (ymax-ymin) * random()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user