Skip to content
Permalink
Browse files
minor formatting fixes
  • Loading branch information
alexbruy committed May 13, 2012
1 parent 346991e commit a1255fce3436f3f2654ec1a104af497fb03e1f10
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/fTools/tools/doSimplify.py
@@ -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 = []

0 comments on commit a1255fc

Please sign in to comment.