Skip to content

Commit ae4a15d

Browse files
committedDec 1, 2015
Improve zoom in behaviour when WFS fetch limit was reached
1 parent e60c9de commit ae4a15d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/providers/wfs/qgswfsprovider.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,8 @@ void QgsWFSProvider::extendExtent( const QgsRectangle &extent )
17371737

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

1740-
if ( mGetExtent.contains( r ) )
1740+
if ( (extent == mGetExtent || mFeatureCount == 0 || mFeatureCount % 500 != 0)
1741+
&& mGetExtent.contains( r ) )
17411742
return;
17421743

17431744
#if 0

0 commit comments

Comments
 (0)
Please sign in to comment.