select_intersects_bug.diff
src/app/qgsmaptoolselectutils.cpp (working copy) | ||
---|---|---|
135 | 135 |
while( vlayer->nextFeature( f ) ) |
136 | 136 |
{ |
137 | 137 |
QgsGeometry* g = f.geometry(); |
138 |
if( doContains && !selectGeomTrans.contains( g ) )
|
|
138 |
if( doContains ) |
|
139 | 139 |
{ |
140 |
continue; |
|
140 |
if ( !selectGeomTrans.contains( g ) ) |
|
141 |
continue; |
|
141 | 142 |
} |
143 |
else |
|
144 |
{ |
|
145 |
if ( !selectGeomTrans.intersects( g ) ) |
|
146 |
continue; |
|
147 |
} |
|
142 | 148 |
if( singleSelect ) |
143 | 149 |
{ |
144 | 150 |
foundSingleFeature = true; |