Skip to content

Commit

Permalink
don't use infinite in spatialite where clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 11, 2013
1 parent 8269f9e commit 371f9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/spatialite/qgsspatialitefeatureiterator.cpp
Expand Up @@ -223,7 +223,7 @@ QString QgsSpatiaLiteFeatureIterator::whereClauseRect()
}
else
{
if ( P->spatialIndexRTree )
if ( P->spatialIndexRTree && rect.isFinite() )
{
// using the RTree spatial index
QString mbrFilter = QString( "xmin <= %1 AND " ).arg( qgsDoubleToString( rect.xMaximum() ) );
Expand Down

0 comments on commit 371f9ba

Please sign in to comment.