Skip to content

Commit

Permalink
Fix out-of-sync vector layer extent after a dataChanged was emitted
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 15, 2020
1 parent 6bbe28b commit ff96140
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -5069,6 +5069,8 @@ void QgsVectorLayer::emitDataChanged()
if ( mDataChangedFired )
return;

updateExtents(); // reset cached extent to reflect data changes

mDataChangedFired = true;
emit dataChanged();
mDataChangedFired = false;
Expand Down

0 comments on commit ff96140

Please sign in to comment.