Skip to content

Commit a1255fc

Browse files
committed
minor formatting fixes
1 parent 346991e commit a1255fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/plugins/fTools/tools/doSimplify.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,17 @@ def restoreGui( self ):
161161

162162
def geomVertexCount( geometry ):
163163
geomType = geometry.type()
164-
if geomType == 1: # line
164+
if geomType == QGis.Line:
165165
if geometry.isMultipart():
166166
pointsList = geometry.asMultiPolyline()
167-
points=sum(pointsList, [])
167+
points = sum( pointsList, [] )
168168
else:
169169
points = geometry.asPolyline()
170170
return len( points )
171-
elif geomType == 2: # polygon
171+
elif geomType == QGis.Polygon:
172172
if geometry.isMultipart():
173173
polylinesList = geometry.asMultiPolygon()
174-
polylines=sum(polylinesList, [])
174+
polylines = sum( polylinesList, [] )
175175
else:
176176
polylines = geometry.asPolygon()
177177
points = []

0 commit comments

Comments
 (0)