[Qgis-developer] feature setFields crashes

Denis Rouzaud denis.rouzaud at gmail.com
Thu Apr 25 00:48:57 PDT 2013


Hi all,

When I write:

f = QgsFeature()
f.setFields( layer.dataProvider().fields() )

QGIS crashes

Here are the two involved methods

void QgsFeature::setFields    (    const QgsFields *     fields    )

virtual const QgsFields& QgsVectorDataProvider::fields    (     )     const


Anybody has an idea??? Did I do something wrong?

Thanks

Denis


More information about the Qgis-developer mailing list