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 61c8cad64834344b78733ef97d2ed44c6f1df32b
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/core/qgsfeatureiterator.cpp
@@ -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.
You can’t perform that action at this time.