File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -301,21 +301,14 @@ bool QgsWFSProvider::addFeatures( QgsFeatureList &flist )
301
301
302
302
QDomElement featureElem = transactionDoc.createElementNS ( mWfsNamespace , tname );
303
303
304
- // add thematic attributes
305
- const QgsFields* fields = featureIt->fields ();
306
- if ( !fields )
307
- {
308
- continue ;
309
- }
310
-
311
304
QgsAttributes featureAttributes = featureIt->attributes ();
312
305
int nAttrs = featureAttributes.size ();
313
306
for ( int i = 0 ; i < nAttrs; ++i )
314
307
{
315
308
const QVariant& value = featureAttributes.at ( i );
316
309
if ( value.isValid () && !value.isNull () )
317
310
{
318
- QDomElement fieldElem = transactionDoc.createElementNS ( mWfsNamespace , fields-> field ( i ).name () );
311
+ QDomElement fieldElem = transactionDoc.createElementNS ( mWfsNamespace , mFields . at ( i ).name () );
319
312
QDomText fieldText = transactionDoc.createTextNode ( value.toString () );
320
313
fieldElem.appendChild ( fieldText );
321
314
featureElem.appendChild ( fieldElem );
You can’t perform that action at this time.
0 commit comments