Skip to content

Instantly share code, notes, and snippets.

@jef-n
Created May 29, 2012 13:52
Show Gist options
  • Save jef-n/2828490 to your computer and use it in GitHub Desktop.
Save jef-n/2828490 to your computer and use it in GitHub Desktop.
diff --git a/src/core/qgsvectorlayer.cpp b/src/core/qgsvectorlayer.cpp
index b4e06a7..3dad784 100644
--- a/src/core/qgsvectorlayer.cpp
+++ b/src/core/qgsvectorlayer.cpp
@@ -1828,6 +1828,12 @@ bool QgsVectorLayer::nextFeature( QgsFeature &f )
{
updateFeatureAttributes( f ); //check joined attributes / changed attributes
}
+
+ if ( mFetchGeometry && mChangedGeometries.contains( f.id() ) )
+ {
+ f.setGeometry( changedGeometries[f.id()] );
+ }
+
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment