Skip to content

Commit

Permalink
Avoid recursive changeGeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 29b1dd7 commit 8085200
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -135,12 +135,13 @@ void QgsVectorLayerFeaturePool::deleteFeature( QgsFeatureId fid )

void QgsVectorLayerFeaturePool::onGeometryChanged( QgsFeatureId fid, const QgsGeometry &geometry )
{
Q_UNUSED( geometry )

if ( isFeatureCached( fid ) )
{
QgsFeature feature;
getFeature( fid, feature );
feature.setGeometry( geometry );
updateFeature( feature );
refreshCache( feature );
}
}

Expand Down

0 comments on commit 8085200

Please sign in to comment.