Skip to content

Commit

Permalink
Improve zoom in behaviour when WFS fetch limit was reached
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtor committed Dec 1, 2015
1 parent e60c9de commit ae4a15d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/wfs/qgswfsprovider.cpp
Expand Up @@ -1737,7 +1737,8 @@ void QgsWFSProvider::extendExtent( const QgsRectangle &extent )

QgsRectangle r( mExtent.intersect( &extent ) );

if ( mGetExtent.contains( r ) )
if ( (extent == mGetExtent || mFeatureCount == 0 || mFeatureCount % 500 != 0)
&& mGetExtent.contains( r ) )
return;

#if 0
Expand Down

0 comments on commit ae4a15d

Please sign in to comment.