We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 1ad36c4 commit b1ffff8Copy full SHA for b1ffff8
python/core/qgsfeature.sip
@@ -120,13 +120,14 @@ class QgsFeature
120
121
SIP_PYOBJECT __iter__();
122
%MethodCode
123
- PyObject *attrs = sipConvertFromType( &sipCpp->attributes(), sipType_QgsAttributes, Py_None );
+ QgsAttributes attributes = sipCpp->attributes();
124
+ PyObject *attrs = sipConvertFromType( &attributes, sipType_QgsAttributes, Py_None );
125
sipRes = PyObject_GetIter(attrs);
126
%End
127
128
SIP_PYOBJECT __getitem__(int key);
129
- const QgsAttributes& attrs = sipCpp->attributes();
130
+ QgsAttributes attrs = sipCpp->attributes();
131
if (a0 < 0 || a0 >= attrs.count())
132
{
133
PyErr_SetString(PyExc_KeyError, QByteArray::number(a0));
0 commit comments