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 @@ -339,21 +339,14 @@ bool QgsWFSProvider::addFeatures( QgsFeatureList &flist )
339339
340340 QDomElement featureElem = transactionDoc.createElementNS ( mWfsNamespace , tname );
341341
342- // add thematic attributes
343- const QgsFields* fields = featureIt->fields ();
344- if ( !fields )
345- {
346- continue ;
347- }
348-
349342 QgsAttributes featureAttributes = featureIt->attributes ();
350343 int nAttrs = featureAttributes.size ();
351344 for ( int i = 0 ; i < nAttrs; ++i )
352345 {
353346 const QVariant& value = featureAttributes.at ( i );
354347 if ( value.isValid () && !value.isNull () )
355348 {
356- QDomElement fieldElem = transactionDoc.createElementNS ( mWfsNamespace , fields-> field ( i ).name () );
349+ QDomElement fieldElem = transactionDoc.createElementNS ( mWfsNamespace , mFields . at ( i ).name () );
357350 QDomText fieldText = transactionDoc.createTextNode ( value.toString () );
358351 fieldElem.appendChild ( fieldText );
359352 featureElem.appendChild ( fieldElem );
You can’t perform that action at this time.
0 commit comments