Skip to content

Commit

Permalink
update feature id of added features (fix #6534)
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Oct 18, 2012
1 parent 9cb43a5 commit faf46b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3731,6 +3731,8 @@ bool QgsSpatiaLiteProvider::addFeatures( QgsFeatureList & flist )

if ( ret == SQLITE_DONE || ret == SQLITE_ROW )
{
// update feature id
features->setFeatureId( sqlite3_last_insert_rowid( sqliteHandle ) );
numberFeatures++;
}
else
Expand Down

0 comments on commit faf46b6

Please sign in to comment.