Skip to content

Commit 6d1b8f3

Browse files
author
jef
committedApr 24, 2010
fix crash introduced in r13360
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13362 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/plugins/spatialquery/qgsspatialquery.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,10 @@ short int QgsSpatialQuery::dimensionGeometry( QGis::GeometryType geomType )
150150
break;
151151
case QGis::Polygon:
152152
dimGeom = 2;
153+
break;
153154
default:
154155
Q_ASSERT( 0 );
155-
dimGeom = 0;
156+
break;
156157
}
157158
return dimGeom;
158159

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

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

279-
( this->*funcPopulateIndexResult )
280-
( qsetIndexResult, featureTarget.id(), geomTarget, operation );
280+
( this->*funcPopulateIndexResult )( qsetIndexResult, featureTarget.id(), geomTarget, operation );
281281
}
282282
delete coordinateTransform;
283283

0 commit comments

Comments
 (0)
Please sign in to comment.