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 authored and nyalldawson committed Jan 15, 2020
1 parent 6a355b8 commit 95135f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -4912,6 +4912,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 95135f9

Please sign in to comment.