Skip to content
Permalink
Browse files
fix #2090
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12278 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 28, 2009
1 parent 17d142d commit 76abb782490a2d57a643df02a85106b7e71b46b9
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgsvectorfilewriter.cpp
@@ -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 )
{

0 comments on commit 76abb78

Please sign in to comment.