Skip to content
Permalink
Browse files
Fix fid collisions when pasting features into a gpkg/spatialite dataset
(cherry picked from commit cb24fe4)
  • Loading branch information
nirvn authored and nyalldawson committed Apr 17, 2021
1 parent 73b6157 commit 4987fb22597873150a2c4451b04569e0d6a99870
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -10376,7 +10376,7 @@ void QgisApp::pasteFromClipboard( QgsMapLayer *destinationLayer )
int nTotalFeatures = features.count();
QgsExpressionContext context = pasteVectorLayer->createExpressionContext();

QgsFeatureList compatibleFeatures( QgsVectorLayerUtils::makeFeaturesCompatible( features, pasteVectorLayer ) );
QgsFeatureList compatibleFeatures( QgsVectorLayerUtils::makeFeaturesCompatible( features, pasteVectorLayer, QgsFeatureSink::RegeneratePrimaryKey ) );
QgsVectorLayerUtils::QgsFeaturesDataList newFeaturesDataList;
newFeaturesDataList.reserve( compatibleFeatures.size() );

0 comments on commit 4987fb2

Please sign in to comment.