Skip to content
Permalink
Browse files
#8725-R: no check geometry pointer twice
  • Loading branch information
ahuarte47 authored and m-kuhn committed Jan 15, 2014
1 parent a7ff8ce commit 61c8cad
Showing 1 changed file with 2 additions and 5 deletions.
@@ -113,11 +113,8 @@ bool QgsAbstractFeatureIterator::simplify( QgsFeature& feature )
{
QgsGeometry* geometry = feature.geometry();

if ( geometry )
{
QGis::GeometryType geometryType = geometry->type();
if ( geometryType == QGis::Line || geometryType == QGis::Polygon ) return mGeometrySimplifier->simplifyGeometry( geometry );
}
QGis::GeometryType geometryType = geometry->type();
if ( geometryType == QGis::Line || geometryType == QGis::Polygon ) return mGeometrySimplifier->simplifyGeometry( geometry );
}
return false;
}

0 comments on commit 61c8cad

Please sign in to comment.