Index: src/app/qgsmaptoolselectutils.cpp =================================================================== --- src/app/qgsmaptoolselectutils.cpp (revision 706) +++ src/app/qgsmaptoolselectutils.cpp (working copy) @@ -134,6 +134,7 @@ QgsFeatureIds newSelectedFeatures; QgsFeature f; int closestFeatureId = 0; + bool foundSingleFeature = false; double closestFeatureDist = std::numeric_limits::max(); while ( vlayer->nextFeature( f ) ) { @@ -144,6 +145,7 @@ } if ( singleSelect ) { + foundSingleFeature = true; double distance = g->distance( selectGeomTrans ); if ( distance <= closestFeatureDist ) { @@ -156,7 +158,7 @@ newSelectedFeatures.insert( f.id() ); } } - if ( singleSelect && closestFeatureId > 0 ) + if ( singleSelect && foundSingleFeature ) { newSelectedFeatures.insert( closestFeatureId ); }