Skip to content

Commit 60147e8

Browse files
committed
Remove use of constGeometry
1 parent bb54b4f commit 60147e8

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

python/plugins/processing/algs/qgis/MergeLines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def processAlgorithm(self, progress):
7575
attrs = inFeat.attributes()
7676
outFeat.setAttributes(attrs)
7777

78-
inGeom = inFeat.constGeometry()
78+
inGeom = inFeat.geometry()
7979
if inGeom:
8080
outGeom = inGeom.mergeLines()
8181
if outGeom is None:

python/plugins/processing/algs/qgis/MultipartToSingleparts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def processAlgorithm(self, progress):
7070
attrs = f.attributes()
7171
outFeat.setAttributes(attrs)
7272

73-
inGeom = f.constGeometry()
73+
inGeom = f.geometry()
7474
if inGeom:
7575
geometries = self.extractAsSingle(inGeom)
7676

python/plugins/processing/tests/testdata/expected/merge_lines.gfs

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)