[QGIS Commit] r14826 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Thu Dec 2 03:44:48 EST 2010
Author: borysiasty
Date: 2010-12-02 00:44:48 -0800 (Thu, 02 Dec 2010)
New Revision: 14826
Modified:
trunk/qgis/src/app/qgsmaptoolselectutils.cpp
Log:
apply patch #3280 from Jeremy Palmer
Modified: trunk/qgis/src/app/qgsmaptoolselectutils.cpp
===================================================================
--- trunk/qgis/src/app/qgsmaptoolselectutils.cpp 2010-12-02 08:32:12 UTC (rev 14825)
+++ trunk/qgis/src/app/qgsmaptoolselectutils.cpp 2010-12-02 08:44:48 UTC (rev 14826)
@@ -135,10 +135,16 @@
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 )
{
foundSingleFeature = true;
More information about the QGIS-commit
mailing list