Skip to content
Permalink
Browse files

ogr provider: only reset feature id of added feature, if OGR assigned…

… one (fixes #12648)

(cherry picked from commit ae11a73)
  • Loading branch information
jef-n committed Jun 2, 2015
1 parent 9ef8b29 commit 9c1186a8a23bcfcaf64c2498f16bf146d8f71332
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -1072,7 +1072,9 @@ bool QgsOgrProvider::addFeature( QgsFeature& f )
}
else
{
f.setFeatureId( OGR_F_GetFID( feature ) );
long id = OGR_F_GetFID( feature );
if ( id >= 0 )
f.setFeatureId( id );
}
OGR_F_Destroy( feature );

0 comments on commit 9c1186a

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