mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Fix fid collisions when pasting features into a gpkg/spatialite dataset
This commit is contained in:
parent
6ca82a2717
commit
cb24fe48e1
@ -10449,7 +10449,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() );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user