Skip to content

Commit b8c7305

Browse files
committedMar 16, 2018
[processing] Fix Points to Paths terminates when an order by
field is empty (cherry-picked from 87e8432)
1 parent dff31a4 commit b8c7305

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/algs/qgis/PointsToPaths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def processAlgorithm(self, parameters, context, feedback):
162162
if feedback.isCanceled():
163163
break
164164

165-
vertices.sort()
165+
vertices.sort(key=lambda x: (x[0] is None, x[0]))
166166
f = QgsFeature()
167167
attributes = []
168168
if group_field_index >= 0:

0 commit comments

Comments
 (0)
Please sign in to comment.