Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix fid collisions when pasting features into a gpkg/spatialite dataset
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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() ); |
|
|
|
|
|