Skip to content
Permalink
Browse files

Fix crash in ogr provider when loading layers with subset strings

  • Loading branch information
nyalldawson committed Nov 20, 2017
1 parent 89f6ca9 commit c9b8ddce7f310cddb6d07ead486839eaae61425a
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -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;

0 comments on commit c9b8ddc

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