don't use infinite in spatialite where clauses

This commit is contained in:
Juergen E. Fischer 2013-11-11 17:57:22 +01:00
parent 8269f9e717
commit 371f9ba17e

View File

@ -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() ) );