Skip to content

Commit

Permalink
apply patch #3280 from Jeremy Palmer
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14826 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Dec 2, 2010
1 parent eb5f491 commit 16f326f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/app/qgsmaptoolselectutils.cpp
Expand Up @@ -135,9 +135,15 @@ void QgsMapToolSelectUtils::setSelectFeatures( QgsMapCanvas* canvas,
while( vlayer->nextFeature( f ) )
{
QgsGeometry* g = f.geometry();
if( doContains && !selectGeomTrans.contains( g ) )
if( doContains )
{
continue;
if ( !selectGeomTrans.contains( g ) )
continue;
}
else
{
if ( !selectGeomTrans.intersects( g ) )
continue;
}
if( singleSelect )
{
Expand Down

0 comments on commit 16f326f

Please sign in to comment.