Skip to content

Commit 0559939

Browse files
committedOct 21, 2015
partly revert 3e0badc (fixes #13645 and #13646)
1 parent ea0ce4e commit 0559939

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/core/qgsfield.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,13 @@ class QgsFields
249249

250250
//! Get field at particular index (must be in range 0..N-1)
251251
// const QgsField& operator[]( int i ) const;
252-
QgsField& operator[](int i);
252+
QgsField& operator[](int i) /Factory/;
253253
%MethodCode
254254
SIP_SSIZE_T idx = sipConvertFromSequenceIndex(a0, sipCpp->count());
255255
if (idx < 0)
256256
sipIsErr = 1;
257257
else
258-
sipRes = &(*sipCpp)[idx];
258+
sipRes = new QgsField(sipCpp->operator[](idx));
259259
%End
260260

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

0 commit comments

Comments
 (0)
Please sign in to comment.