Skip to content

Commit

Permalink
python QgsField.__len__() fix; fixes PyQgsMemoryProvider and PyQgsVec…
Browse files Browse the repository at this point in the history
…torLayer test on platforms with SIP < 4.10.3
  • Loading branch information
blazek committed Apr 20, 2013
1 parent f0e6b75 commit e5366b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/core/qgsfield.sip
Expand Up @@ -127,7 +127,13 @@ public:
void remove( int fieldIdx );

bool isEmpty() const;
int count() const /__len__/;
// __len__ annotation since sip 4.10.3
//int count() const /__len__/;
int count() const;
int __len__() const;
%MethodCode
sipRes = sipCpp->count();
%End
int size() const;
//const QgsField& operator[](int i) const;
//QgsField& operator[](int i);
Expand Down

0 comments on commit e5366b0

Please sign in to comment.