Skip to content

Commit

Permalink
fix #2090
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12278 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 28, 2009
1 parent 0bdc395 commit c9eb241
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsvectorfilewriter.cpp
Expand Up @@ -266,6 +266,12 @@ bool QgsVectorFileWriter::addFeature( QgsFeature& feature )

// build geometry from WKB
QgsGeometry *geom = feature.geometry();
if ( !geom )
{
QgsDebugMsg( "invalid geometry" );
OGR_F_Destroy( poFeature );
return false;
}

if ( geom->wkbType() != mWkbType )
{
Expand Down

0 comments on commit c9eb241

Please sign in to comment.