Navigation Menu

Skip to content

Commit

Permalink
partly revert 3e0badc (fixes #13645 and #13646)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 21, 2015
1 parent ea0ce4e commit 0559939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/core/qgsfield.sip
Expand Up @@ -249,13 +249,13 @@ class QgsFields

//! Get field at particular index (must be in range 0..N-1)
// const QgsField& operator[]( int i ) const;
QgsField& operator[](int i);
QgsField& operator[](int i) /Factory/;
%MethodCode
SIP_SSIZE_T idx = sipConvertFromSequenceIndex(a0, sipCpp->count());
if (idx < 0)
sipIsErr = 1;
else
sipRes = &(*sipCpp)[idx];
sipRes = new QgsField(sipCpp->operator[](idx));
%End

//! Get field at particular index (must be in range 0..N-1)
Expand Down

0 comments on commit 0559939

Please sign in to comment.