Skip to content
Permalink
Browse files

Fix crash with SQL Server driver

  • Loading branch information
NathanW2 committed Oct 11, 2014
1 parent c9cfdfa commit 67c9a72b4854cd776b676b4ed75014168274a212
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/mssql/qgsmssqlfeatureiterator.cpp
@@ -89,7 +89,7 @@ void QgsMssqlFeatureIterator::BuildStatement( const QgsFeatureRequest& request )

bool filterAdded = false;
// set spatial filter
if ( request.filterType() == QgsFeatureRequest::FilterRect && mSource->isSpatial() )
if ( request.filterType() == QgsFeatureRequest::FilterRect && mSource->isSpatial() && !request.filterRect().isEmpty() )
{
// polygons should be CCW for SqlGeography
QString r;

0 comments on commit 67c9a72

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