Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 20, 2015
1 parent 1ad36c4 commit b1ffff8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/core/qgsfeature.sip
Expand Up @@ -120,13 +120,14 @@ class QgsFeature

SIP_PYOBJECT __iter__();
%MethodCode
PyObject *attrs = sipConvertFromType( &sipCpp->attributes(), sipType_QgsAttributes, Py_None );
QgsAttributes attributes = sipCpp->attributes();
PyObject *attrs = sipConvertFromType( &attributes, sipType_QgsAttributes, Py_None );
sipRes = PyObject_GetIter(attrs);
%End

SIP_PYOBJECT __getitem__(int key);
%MethodCode
const QgsAttributes& attrs = sipCpp->attributes();
QgsAttributes attrs = sipCpp->attributes();
if (a0 < 0 || a0 >= attrs.count())
{
PyErr_SetString(PyExc_KeyError, QByteArray::number(a0));
Expand Down

0 comments on commit b1ffff8

Please sign in to comment.