Skip to content
Permalink
Browse files

Merge pull request #3372 from anitagraser/patch-1

[processing] fixed failure to insert only one point in Densify geometries alg
  • Loading branch information
alexbruy committed Aug 12, 2016
2 parents 4ae7b6f + 754ccef commit 915afcf8fafb83d00aeaed91a7c68cb34705404f
Showing with 1 addition and 4 deletions.
  1. +1 −4 python/plugins/processing/algs/qgis/DensifyGeometries.py
@@ -112,10 +112,7 @@ def densifyGeometry(self, geometry, pointsNumber, isPolygon):

def densify(self, polyline, pointsNumber):
output = []
if pointsNumber != 1:
multiplier = 1.0 / float(pointsNumber + 1)
else:
multiplier = 1
multiplier = 1.0 / float(pointsNumber + 1)
for i in xrange(len(polyline) - 1):
p1 = polyline[i]
p2 = polyline[i + 1]

0 comments on commit 915afcf

Please sign in to comment.
You can’t perform that action at this time.