Skip to content

Commit 2022848

Browse files
havatvnyalldawson
authored andcommittedApr 11, 2020
Random Points on Lines algorithm: Fix check minimum distance logic (#35713)
1 parent 7a9c3c6 commit 2022848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/analysis/processing/qgsalgorithmrandompointsonlines.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ QVariantMap QgsRandomPointsOnLinesAlgorithm::processAlgorithm( const QVariantMap
273273

274274
if ( !rpGeom.isNull() && !rpGeom.isEmpty() )
275275
{
276-
if ( minDistanceForThisFeature != 0 && pointsAddedForThisFeature > 0 )
276+
if ( minDistanceForThisFeature != 0 && totNPoints > 0 )
277277
{
278278
// Have to check minimum distance to existing points
279279
QList<QgsFeatureId> neighbors = index.nearestNeighbor( rpGeom, 1, minDistanceForThisFeature );

0 commit comments

Comments
 (0)