Skip to content
Permalink
Browse files

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

… one (fixes #12648)
  • Loading branch information
jef-n committed Jun 2, 2015
1 parent 710e7f7 commit ae11a731ae406def333cc85dd2dcbc46429320d9
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -1070,7 +1070,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 ae11a73

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