Skip to content
Permalink
Browse files

skip null values in vector file writer (fixes #5172)

  • Loading branch information
jef-n committed May 28, 2012
1 parent a965fca commit e7e2c08f377a345e51ec0aed5a3df3311fa3bda7
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/qgsvectorfilewriter.cpp
@@ -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:

0 comments on commit e7e2c08

Please sign in to comment.
You can’t perform that action at this time.