Skip to content

Commit

Permalink
[mssql] Fix incorrect layer extents after modifying layers
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 25, 2018
1 parent fb0b8fd commit 72946c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/providers/mssql/qgsmssqlprovider.cpp
Expand Up @@ -1412,6 +1412,11 @@ bool QgsMssqlProvider::deleteFeatures( const QgsFeatureIds &id )
return true;
}

void QgsMssqlProvider::updateExtents()
{
mExtent.setMinimal();
}

QgsVectorDataProvider::Capabilities QgsMssqlProvider::capabilities() const
{
QgsVectorDataProvider::Capabilities cap = CreateAttributeIndex | AddFeatures | AddAttributes;
Expand Down
1 change: 1 addition & 0 deletions src/providers/mssql/qgsmssqlprovider.h
Expand Up @@ -58,6 +58,7 @@ class QgsMssqlProvider : public QgsVectorDataProvider

/* Implementation of functions from QgsVectorDataProvider */

void updateExtents() override;
QString storageType() const override;
QStringList subLayers() const override;
QVariant minimumValue( int index ) const override;
Expand Down

0 comments on commit 72946c3

Please sign in to comment.