Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix crash introduced in r13360
git-svn-id: http://svn.osgeo.org/qgis/trunk@13362 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 24, 2010
1 parent c2dbddc commit cbb4947
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/spatialquery/qgsspatialquery.cpp
Expand Up @@ -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;

Expand Down Expand Up @@ -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 )
{
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit cbb4947

Please sign in to comment.