Skip to content
Permalink
Browse files

partly revert 3e0badc (fixes #13645 and #13646)

  • Loading branch information
jef-n committed Oct 21, 2015
1 parent ea0ce4e commit 0559939725961ba966a8ffd61f4ab5eadb61ffdd
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/core/qgsfield.sip
@@ -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)

0 comments on commit 0559939

Please sign in to comment.
You can’t perform that action at this time.