Skip to content

Commit b1ffff8

Browse files
committedMay 20, 2015
Fix build
1 parent 1ad36c4 commit b1ffff8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎python/core/qgsfeature.sip

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,14 @@ class QgsFeature
120120

121121
SIP_PYOBJECT __iter__();
122122
%MethodCode
123-
PyObject *attrs = sipConvertFromType( &sipCpp->attributes(), sipType_QgsAttributes, Py_None );
123+
QgsAttributes attributes = sipCpp->attributes();
124+
PyObject *attrs = sipConvertFromType( &attributes, sipType_QgsAttributes, Py_None );
124125
sipRes = PyObject_GetIter(attrs);
125126
%End
126127

127128
SIP_PYOBJECT __getitem__(int key);
128129
%MethodCode
129-
const QgsAttributes& attrs = sipCpp->attributes();
130+
QgsAttributes attrs = sipCpp->attributes();
130131
if (a0 < 0 || a0 >= attrs.count())
131132
{
132133
PyErr_SetString(PyExc_KeyError, QByteArray::number(a0));

0 commit comments

Comments
 (0)
Please sign in to comment.