Skip to content
Permalink
Browse files

[ogr] Fix incorrect feature counts after removing subset string, fix …

…leak
  • Loading branch information
nyalldawson committed Nov 19, 2017
1 parent 6c4a8a2 commit 163b2e20a8f6367420d1d3d324ed3b857d9018f3
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -535,6 +535,8 @@ bool QgsOgrProvider::setSubsetString( const QString &theSQL, bool updateFeatureC
}
else
{
if ( mOgrLayer != mOgrOrigLayer )
QgsOgrProviderUtils::release( mOgrLayer );
mOgrLayer = mOgrOrigLayer;
}
mSubsetString = theSQL;

0 comments on commit 163b2e2

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