mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
[ogr] Fix incorrect feature counts after removing subset string, fix leak
This commit is contained in:
parent
6c4a8a246e
commit
163b2e20a8
@ -535,6 +535,8 @@ bool QgsOgrProvider::setSubsetString( const QString &theSQL, bool updateFeatureC
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( mOgrLayer != mOgrOrigLayer )
|
||||
QgsOgrProviderUtils::release( mOgrLayer );
|
||||
mOgrLayer = mOgrOrigLayer;
|
||||
}
|
||||
mSubsetString = theSQL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user