Skip to content

Commit

Permalink
Fix index out of range error in shortest path algs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 31, 2017
1 parent d1d95b1 commit 4925438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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

Expand Down
Expand Up @@ -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

Expand Down

0 comments on commit 4925438

Please sign in to comment.