diff --git a/python/core/qgsfeature.sip b/python/core/qgsfeature.sip index 4c2f25b1786..b36d2508615 100644 --- a/python/core/qgsfeature.sip +++ b/python/core/qgsfeature.sip @@ -100,11 +100,12 @@ class QgsFeature /** Set this feature's geometry from another QgsGeometry object (deep copy) */ - //void setGeometry(const QgsGeometry& geom); + void setGeometry(const QgsGeometry& geom); /** Set this feature's geometry (takes geometry ownership) */ - void setGeometry(QgsGeometry* geom /Transfer/); + // use only the version that copies the geometry (it's safer) + //void setGeometry(QgsGeometry* geom /Transfer/); /** * Set this feature's geometry from WKB