Skip to content
Permalink
Browse files

fix crash introduced in r13360

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13362 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Apr 24, 2010
1 parent be05f2d commit 6d1b8f3b17a9bd8afdd32b16e67ea4ac582783a1
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/plugins/spatialquery/qgsspatialquery.cpp
@@ -150,9 +150,10 @@ short int QgsSpatialQuery::dimensionGeometry( QGis::GeometryType geomType )
break;
case QGis::Polygon:
dimGeom = 2;
break;
default:
Q_ASSERT( 0 );
dimGeom = 0;
break;
}
return dimGeom;

@@ -217,7 +218,7 @@ void QgsSpatialQuery::setSpatialIndexReference()

void QgsSpatialQuery::execQuery( QSet<int> & qsetIndexResult, int relation )
{
// Set function GEOS
// Set GEOS function
char( *operation )( const GEOSGeometry *, const GEOSGeometry* );
switch ( relation )
{
@@ -276,8 +277,7 @@ void QgsSpatialQuery::execQuery( QSet<int> & qsetIndexResult, int relation )
geomTarget = featureTarget.geometry();
coordinateTransform->transform( geomTarget );

( this->*funcPopulateIndexResult )
( qsetIndexResult, featureTarget.id(), geomTarget, operation );
( this->*funcPopulateIndexResult )( qsetIndexResult, featureTarget.id(), geomTarget, operation );
}
delete coordinateTransform;

0 comments on commit 6d1b8f3

Please sign in to comment.
You can’t perform that action at this time.