Skip to content
Permalink
Browse files
minor formatting fixes
  • Loading branch information
alexbruy authored and jef-n committed May 17, 2012
1 parent 260d76b commit d6ea1b94a978e13b63b6fe5fb023ce6cee987e5e
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 d6ea1b9

Please sign in to comment.