Skip to content

Commit 16f326f

Browse files
author
borysiasty
committedDec 2, 2010
apply patch #3280 from Jeremy Palmer
git-svn-id: http://svn.osgeo.org/qgis/trunk@14826 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent eb5f491 commit 16f326f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

‎src/app/qgsmaptoolselectutils.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,15 @@ void QgsMapToolSelectUtils::setSelectFeatures( QgsMapCanvas* canvas,
135135
while( vlayer->nextFeature( f ) )
136136
{
137137
QgsGeometry* g = f.geometry();
138-
if( doContains && !selectGeomTrans.contains( g ) )
138+
if( doContains )
139139
{
140-
continue;
140+
if ( !selectGeomTrans.contains( g ) )
141+
continue;
142+
}
143+
else
144+
{
145+
if ( !selectGeomTrans.intersects( g ) )
146+
continue;
141147
}
142148
if( singleSelect )
143149
{

0 commit comments

Comments
 (0)
Please sign in to comment.