Skip to content

Commit

Permalink
Fix crash in ogr provider when loading layers with subset strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 20, 2017
1 parent 89f6ca9 commit c9b8ddc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3907,6 +3907,7 @@ void QgsOgrProvider::open( OpenMode mode )
if ( mValid && mode == OpenModeInitial && mWriteAccess &&
( mGDALDriverName == QLatin1String( "ESRI Shapefile" ) || mGDALDriverName == QLatin1String( "MapInfo File" ) ) )
{
mOgrSqlLayer.reset();
mOgrOrigLayer.reset();
mOgrLayer = nullptr;
mValid = false;
Expand Down

0 comments on commit c9b8ddc

Please sign in to comment.