Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
minor formatting fixes
  • Loading branch information
alexbruy committed May 13, 2012
1 parent 346991e commit a1255fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/fTools/tools/doSimplify.py
Expand Up @@ -161,17 +161,17 @@ def restoreGui( self ):

def geomVertexCount( geometry ):
geomType = geometry.type()
if geomType == 1: # line
if geomType == QGis.Line:
if geometry.isMultipart():
pointsList = geometry.asMultiPolyline()
points=sum(pointsList, [])
points = sum( pointsList, [] )
else:
points = geometry.asPolyline()
return len( points )
elif geomType == 2: # polygon
elif geomType == QGis.Polygon:
if geometry.isMultipart():
polylinesList = geometry.asMultiPolygon()
polylines=sum(polylinesList, [])
polylines = sum( polylinesList, [] )
else:
polylines = geometry.asPolygon()
points = []
Expand Down

0 comments on commit a1255fc

Please sign in to comment.