Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update PointsToPaths.py
spaces deleted
  • Loading branch information
MrChebur committed Aug 15, 2020
1 parent 660703d commit e5246da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/qgis/PointsToPaths.py
Expand Up @@ -85,7 +85,7 @@ def initAlgorithm(self, config=None):

def name(self):
return 'pointstopath'

def displayName(self):
return self.tr('Points to path')

Expand Down Expand Up @@ -139,7 +139,7 @@ def processAlgorithm(self, parameters, context, feedback):

if not f.hasGeometry():
continue

point = f.geometry().constGet().clone()
if group_field_index >= 0:
group = f[group_field_index]
Expand All @@ -166,7 +166,7 @@ def processAlgorithm(self, parameters, context, feedback):
for group, vertices in points.items():
if feedback.isCanceled():
break

vertices.sort(key=lambda x: (x[0] is None, x[0]))
f = QgsFeature()
attributes = []
Expand Down

0 comments on commit e5246da

Please sign in to comment.