Navigation Menu

Skip to content

Commit

Permalink
[ogr] Fix incorrect feature counts after removing subset string, fix …
Browse files Browse the repository at this point in the history
…leak
  • Loading branch information
nyalldawson committed Nov 19, 2017
1 parent 6c4a8a2 commit 163b2e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -535,6 +535,8 @@ bool QgsOgrProvider::setSubsetString( const QString &theSQL, bool updateFeatureC
}
else
{
if ( mOgrLayer != mOgrOrigLayer )
QgsOgrProviderUtils::release( mOgrLayer );
mOgrLayer = mOgrOrigLayer;
}
mSubsetString = theSQL;
Expand Down

0 comments on commit 163b2e2

Please sign in to comment.