Skip to content
Permalink
Browse files

don't try to refresh the layer extent after deletion of features, if

useEstimatedMetadata is enabled (tradeoff for large layers)
  • Loading branch information
jef-n committed Feb 22, 2016
1 parent 5b46f48 commit f1e1559e74b4b9bb4d3d96961eac5af30e97fa5a
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/qgsvectorlayer.cpp
@@ -825,7 +825,9 @@ QgsRectangle QgsVectorLayer::extent()
return rect;
}

if ( !mEditBuffer || ( mEditBuffer->mDeletedFeatureIds.isEmpty() && mEditBuffer->mChangedGeometries.isEmpty() ) )
if ( !mEditBuffer ||
( mEditBuffer->mDeletedFeatureIds.isEmpty() && mEditBuffer->mChangedGeometries.isEmpty() ) ||
QgsDataSourceURI( mDataProvider->dataSourceUri() ).useEstimatedMetadata() )
{
mDataProvider->updateExtents();

0 comments on commit f1e1559

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