Skip to content
Browse files
python QgsField.__len__() fix; fixes PyQgsMemoryProvider and PyQgsVec…
…torLayer test on platforms with SIP < 4.10.3
  • Loading branch information
blazek committed Apr 20, 2013
1 parent f0e6b75 commit e5366b06c647819cfb68b3ce329530edf496808b
Showing with 7 additions and 1 deletion.
  1. +7 −1 python/core/qgsfield.sip
@@ -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;
sipRes = sipCpp->count();
int size() const;
//const QgsField& operator[](int i) const;
//QgsField& operator[](int i);

0 comments on commit e5366b0

Please sign in to comment.