Skip to content

Commit 4eb76e6

Browse files
author
wonder
committed
Fix #2324.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12627 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d74d13e commit 4eb76e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/core/qgsfeature.sip

+3-2
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,12 @@ class QgsFeature
100100

101101
/** Set this feature's geometry from another QgsGeometry object (deep copy)
102102
*/
103-
//void setGeometry(const QgsGeometry& geom);
103+
void setGeometry(const QgsGeometry& geom);
104104

105105
/** Set this feature's geometry (takes geometry ownership)
106106
*/
107-
void setGeometry(QgsGeometry* geom /Transfer/);
107+
// use only the version that copies the geometry (it's safer)
108+
//void setGeometry(QgsGeometry* geom /Transfer/);
108109

109110
/**
110111
* Set this feature's geometry from WKB

0 commit comments

Comments
 (0)