Skip to content

Commit

Permalink
Merge pull request #1460 from rouault/fix_crash_in_QgsVectorFileWrite…
Browse files Browse the repository at this point in the history
…r_addFeature

Fix crash in QgsVectorFileWriter::addFeature()
  • Loading branch information
wonder-sk committed Jun 19, 2014
2 parents fd46c49 + 1bfd01b commit 60a1989
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsvectorfilewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,8 @@ bool QgsVectorFileWriter::addFeature( QgsFeature& feature, QgsFeatureRendererV2*
{
// create the feature
OGRFeatureH poFeature = createFeature( feature );
if( !poFeature )
return false;

//add OGR feature style type
if ( mSymbologyExport != NoSymbology && renderer )
Expand Down

0 comments on commit 60a1989

Please sign in to comment.