Skip to content

Commit

Permalink
followup c4dcfbf
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 12, 2016
1 parent c4dcfbf commit 24af533
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/qgspointlocator.cpp
Expand Up @@ -858,8 +858,8 @@ QgsPointLocator::Match QgsPointLocator::nearestEdge( const QgsPoint& point, doub
return Match();
}

QgsWkbTypes::GeometryType geomType = mLayer->geometryType();
if ( geomType == QgsWkbTypes::PointGeometry )
QGis::GeometryType geomType = mLayer->geometryType();
if ( geomType == QGis::Point )
return Match();

Match m;
Expand All @@ -880,8 +880,8 @@ QgsPointLocator::MatchList QgsPointLocator::edgesInRect( const QgsRectangle& rec
return MatchList();
}

QgsWkbTypes::GeometryType geomType = mLayer->geometryType();
if ( geomType == QgsWkbTypes::PointGeometry )
QGis::GeometryType geomType = mLayer->geometryType();
if ( geomType == QGis::Point )
return MatchList();

MatchList lst;
Expand All @@ -907,8 +907,8 @@ QgsPointLocator::MatchList QgsPointLocator::pointInPolygon( const QgsPoint& poin
return MatchList();
}

QgsWkbTypes::GeometryType geomType = mLayer->geometryType();
if ( geomType == QgsWkbTypes::PointGeometry || geomType == QgsWkbTypes::LineGeometry )
QGis::GeometryType geomType = mLayer->geometryType();
if ( geomType == QGis::Point || geomType == QGis::Line )
return MatchList();

MatchList lst;
Expand Down

0 comments on commit 24af533

Please sign in to comment.