Skip to content
Permalink
Browse files

followup c4dcfbf

  • Loading branch information
3nids committed Aug 12, 2016
1 parent c4dcfbf commit 24af5337c5410e3c486269795de70694c985802f
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/core/qgspointlocator.cpp
@@ -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;
@@ -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;
@@ -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;

0 comments on commit 24af533

Please sign in to comment.
You can’t perform that action at this time.