mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
parent
ea0ce4ec1e
commit
0559939725
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user