Skip to content
Permalink
Browse files
Random Points on Lines algorithm: Fix check minimum distance logic (#…
  • Loading branch information
havatv authored and nyalldawson committed Apr 11, 2020
1 parent 7a9c3c6 commit 20228484927915c1ffd96db0bb99b6dfe6c2e51b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/processing/qgsalgorithmrandompointsonlines.cpp
@@ -273,7 +273,7 @@ QVariantMap QgsRandomPointsOnLinesAlgorithm::processAlgorithm( const QVariantMap

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

0 comments on commit 2022848

Please sign in to comment.