We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent ea0ce4e commit 0559939Copy full SHA for 0559939
python/core/qgsfield.sip
@@ -249,13 +249,13 @@ class QgsFields
249
250
//! Get field at particular index (must be in range 0..N-1)
251
// const QgsField& operator[]( int i ) const;
252
- QgsField& operator[](int i);
+ QgsField& operator[](int i) /Factory/;
253
%MethodCode
254
SIP_SSIZE_T idx = sipConvertFromSequenceIndex(a0, sipCpp->count());
255
if (idx < 0)
256
sipIsErr = 1;
257
else
258
- sipRes = &(*sipCpp)[idx];
+ sipRes = new QgsField(sipCpp->operator[](idx));
259
%End
260
261
0 commit comments