Skip to content
Permalink
Browse files

Fix index out of range error in shortest path algs

  • Loading branch information
nyalldawson committed Oct 28, 2017
1 parent d1d95b1 commit 49254384df31c2a5631bc07f96246b0b7ab78d24
@@ -237,7 +237,7 @@ def processAlgorithm(self, parameters, context, feedback):

nPoints = len(snappedPoints)
total = 100.0 / nPoints if nPoints else 1
for i in range(1, nPoints + 1):
for i in range(1, nPoints):
if feedback.isCanceled():
break

@@ -238,7 +238,7 @@ def processAlgorithm(self, parameters, context, feedback):

nPoints = len(snappedPoints)
total = 100.0 / nPoints if nPoints else 1
for i in range(1, nPoints + 1):
for i in range(1, nPoints):
if feedback.isCanceled():
break

0 comments on commit 4925438

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