Skip to content

Commit

Permalink
skip null values in vector file writer (fixes #5172)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 28, 2012
1 parent a965fca commit e7e2c08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/qgsvectorfilewriter.cpp
Expand Up @@ -449,6 +449,9 @@ bool QgsVectorFileWriter::addFeature( QgsFeature& feature )
const QVariant& attrValue = feature.attributeMap()[ fldIt.key()];
int ogrField = mAttrIdxToOgrIdx[ fldIt.key()];

if ( attrValue.isNull() )
continue;

switch ( attrValue.type() )
{
case QVariant::Int:
Expand Down

0 comments on commit e7e2c08

Please sign in to comment.