Skip to content

Commit

Permalink
#8725-R: no check geometry pointer twice
Browse files Browse the repository at this point in the history
  • 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.
7 changes: 2 additions & 5 deletions src/core/qgsfeatureiterator.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 61c8cad

Please sign in to comment.