Skip to content
Permalink
Browse files
Fix build
  • Loading branch information
nyalldawson committed May 20, 2015
1 parent 1ad36c4 commit b1ffff826d924bdca47c9ab563e6768e3707ebce
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/core/qgsfeature.sip
@@ -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));

0 comments on commit b1ffff8

Please sign in to comment.